Class: Proxy
Instance Attribute Summary collapse
-
#output ⇒ Object
Returns the value of attribute output.
-
#target ⇒ Object
Returns the value of attribute target.
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
67 68 69 70 |
# File 'lib/rspec-console/config_cache.rb', line 67 def method_missing(method, *args, &block) self.output << {:method => method, :args => args, :block => block} self.target.send(method, *args, &block) end |
Instance Attribute Details
#output ⇒ Object
Returns the value of attribute output
60 61 62 |
# File 'lib/rspec-console/config_cache.rb', line 60 def output @output end |
#target ⇒ Object
Returns the value of attribute target
60 61 62 |
# File 'lib/rspec-console/config_cache.rb', line 60 def target @target end |