Class: RSpecConsole::ConfigCache::RecordingProxy
- Inherits:
-
Struct
- Object
- Struct
- RSpecConsole::ConfigCache::RecordingProxy
- Defined in:
- lib/rspec-console/config_cache.rb
Instance Attribute Summary collapse
-
#recorded_messages ⇒ Object
Returns the value of attribute recorded_messages.
-
#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
23 24 25 26 |
# File 'lib/rspec-console/config_cache.rb', line 23 def method_missing(method, *args, &block) self. << [method, args, block] self.target.send(method, *args, &block) end |
Instance Attribute Details
#recorded_messages ⇒ Object
Returns the value of attribute recorded_messages
16 17 18 |
# File 'lib/rspec-console/config_cache.rb', line 16 def @recorded_messages end |
#target ⇒ Object
Returns the value of attribute target
16 17 18 |
# File 'lib/rspec-console/config_cache.rb', line 16 def target @target end |