Module: Ripl::Irb::MockIrb
- Defined in:
- lib/ripl/irb.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing ⇒ Object
20 21 |
# File 'lib/ripl/irb.rb', line 20 def method_missing(*) end |
Instance Method Details
#const_missing(*args) ⇒ Object
16 17 18 |
# File 'lib/ripl/irb.rb', line 16 def const_missing(*args) self.const_set(args[0], Module.new.extend(MockIrb)) end |