Class: Message::Recorder::Message
- Defined in:
- lib/message-recorder/message.rb
Overview
The Message class describes a message.
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
:nodoc:.
-
#block ⇒ Object
readonly
:nodoc:.
-
#method_name ⇒ Object
readonly
the name of the method being called.
Instance Method Summary collapse
-
#initialize(method_name, arguments, block) ⇒ Message
constructor
:nodoc:.
-
#to_message_call(subject) ⇒ Object
:nodoc:.
Constructor Details
#initialize(method_name, arguments, block) ⇒ Message
:nodoc:
33 34 35 36 37 |
# File 'lib/message-recorder/message.rb', line 33 def initialize(method_name, arguments, block) # :nodoc: @method_name = method_name @arguments = arguments @block = block end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
:nodoc:
28 29 30 |
# File 'lib/message-recorder/message.rb', line 28 def arguments @arguments end |
#block ⇒ Object (readonly)
:nodoc:
31 32 33 |
# File 'lib/message-recorder/message.rb', line 31 def block @block end |
#method_name ⇒ Object (readonly)
the name of the method being called.
25 26 27 |
# File 'lib/message-recorder/message.rb', line 25 def method_name @method_name end |