Class: Object
- Inherits:
-
BasicObject
- Defined in:
- lib/expletive_infixation/ext/object.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
3
4
5
|
# File 'lib/expletive_infixation/ext/object.rb', line 3
def method_missing(name, *args, &block)
m = Explete.target_method(self, name) and send m, *args, &block or super
end
|
Instance Method Details
#respond_to_missing?(name, include_private = false) ⇒ Boolean
7
8
9
|
# File 'lib/expletive_infixation/ext/object.rb', line 7
def respond_to_missing?(name, include_private=false)
!!Explete.target_method(self, name) or super
end
|