Method: Mustang::V8::Object#method_missing

Defined in:
lib/mustang/v8/object.rb

#method_missing(meth, *args, &block) ⇒ Object

:nodoc:



19
20
21
22
23
24
25
26
27
28
29
# File 'lib/mustang/v8/object.rb', line 19

def method_missing(meth, *args, &block) # :nodoc:
  if respond_to?(meth)
    property = self[meth]
    if property.is_a?(Function)
      return property.call_on(self, *args, &block)
    else
      return property
    end
  end
  super
end