# Method\_missing

**URL:** <https://www.ruby-forum.com/t/method-missing/77504>\
**Category:** Ruby\
**Created:** [March 6, 2006, 11:09pm UTC](https://www.ruby-forum.com/t/method-missing/77504 "2006-03-06T23:09:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a9adbd/32.png) [@robertj](https://www.ruby-forum.com/u/robertj)\
**Post date:** [March 6, 2006, 11:09pm UTC](https://www.ruby-forum.com/t/method-missing/77504/1 "2006-03-06T23:09:30Z")

</div>

hi,

is there a way to find out if a method was called using parens or not.  
that is there some hidden parameter that tells me

someinstance.foo

or

someinstance.foo()

maybe the ruby docs is missing the following? 🙂

def method\_missing(\_id, [very\_secret\_flag\_for\_parens], \*\_args, &\_block)

ciao robertj

---

<div class="post-metadata">

**Author:** ![robertj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a9adbd/32.png) [@robertj](https://www.ruby-forum.com/u/robertj)\
**Post date:** [March 6, 2006, 11:52pm UTC](https://www.ruby-forum.com/t/method-missing/77504/2 "2006-03-06T23:52:12Z")

</div>

Nope. I guess you could walk up the backtrace, get the file and line  
number and parse it out of the code where you’re method was called.  
I’d wouldn’t recommend that, for various reasons.

So, as far as I know, no. Sorry.

Dan Amelang
