Class: It
- Inherits:
- BasicObject
- Defined in:
- lib/vendor/methodphitamine.rb
Instance Method Summary collapse
-
#initialize ⇒ It
constructor
A new instance of It.
- #method_missing(*args, **kwargs, &block) ⇒ Object
- #to_proc ⇒ Object
Constructor Details
#initialize ⇒ It
Returns a new instance of It.
14 15 16 |
# File 'lib/vendor/methodphitamine.rb', line 14 def initialize @methods = [] end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args, **kwargs, &block) ⇒ Object
18 19 20 21 |
# File 'lib/vendor/methodphitamine.rb', line 18 def method_missing(*args, **kwargs, &block) @methods << [args, kwargs, block] unless args == [:respond_to?, :to_proc] self end |