Class: RSpecConsole::ConfigCache::RecordingProxy

Inherits:
Struct
  • Object
show all
Defined in:
lib/rspec-console/config_cache.rb

Instance Attribute Summary collapse

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.recorded_messages << [method, args, block]
  self.target.send(method, *args, &block)
end

Instance Attribute Details

#recorded_messagesObject

Returns the value of attribute recorded_messages

Returns:

  • (Object)

    the current value of recorded_messages



16
17
18
# File 'lib/rspec-console/config_cache.rb', line 16

def recorded_messages
  @recorded_messages
end

#targetObject

Returns the value of attribute target

Returns:

  • (Object)

    the current value of target



16
17
18
# File 'lib/rspec-console/config_cache.rb', line 16

def target
  @target
end