Class: RSpec::Daemon::Configuration::RecordingProxy

Inherits:
Struct
  • Object
show all
Defined in:
lib/rspec/daemon/configuration.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



13
14
15
16
# File 'lib/rspec/daemon/configuration.rb', line 13

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



6
7
8
# File 'lib/rspec/daemon/configuration.rb', line 6

def recorded_messages
  @recorded_messages
end

#targetObject

Returns the value of attribute target

Returns:

  • (Object)

    the current value of target



6
7
8
# File 'lib/rspec/daemon/configuration.rb', line 6

def target
  @target
end