Class: Object

Inherits:
BasicObject
Defined in:
lib/mruby_app/mruby/main.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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

Raises:

  • (NoMethodError)


2
3
4
# File 'lib/mruby_app/mruby/main.rb', line 2

def method_missing(meth, *args, &blk)
  raise NoMethodError, "Undefined method '#{meth}' for #{self.class} - #{self.inspect}"
end