Class: Mocha::Invocation
Overview
:nodoc:
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#method_name ⇒ Object
readonly
Returns the value of attribute method_name.
-
#mock ⇒ Object
readonly
Returns the value of attribute mock.
Instance Method Summary collapse
-
#initialize(mock, method_name, arguments) ⇒ Invocation
constructor
A new instance of Invocation.
Constructor Details
#initialize(mock, method_name, arguments) ⇒ Invocation
Returns a new instance of Invocation.
4 5 6 7 8 |
# File 'lib/mocha/invocation.rb', line 4 def initialize(mock, method_name, arguments) @mock = mock @method_name = method_name @arguments = arguments end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
3 4 5 |
# File 'lib/mocha/invocation.rb', line 3 def arguments @arguments end |
#method_name ⇒ Object (readonly)
Returns the value of attribute method_name.
3 4 5 |
# File 'lib/mocha/invocation.rb', line 3 def method_name @method_name end |
#mock ⇒ Object (readonly)
Returns the value of attribute mock.
3 4 5 |
# File 'lib/mocha/invocation.rb', line 3 def mock @mock end |