Class: FlexMock::CallRecord
- Defined in:
- lib/flexmock/call_record.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#block_given ⇒ Object
Returns the value of attribute block_given.
-
#expectation ⇒ Object
Returns the value of attribute expectation.
-
#method_name ⇒ Object
Returns the value of attribute method_name.
Instance Method Summary collapse
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args
14 15 16 |
# File 'lib/flexmock/call_record.rb', line 14 def args @args end |
#block_given ⇒ Object
Returns the value of attribute block_given
14 15 16 |
# File 'lib/flexmock/call_record.rb', line 14 def block_given @block_given end |
#expectation ⇒ Object
Returns the value of attribute expectation
14 15 16 |
# File 'lib/flexmock/call_record.rb', line 14 def expectation @expectation end |
#method_name ⇒ Object
Returns the value of attribute method_name
14 15 16 |
# File 'lib/flexmock/call_record.rb', line 14 def method_name @method_name end |
Instance Method Details
#matches?(sym, actual_args, options) ⇒ Boolean
15 16 17 18 19 |
# File 'lib/flexmock/call_record.rb', line 15 def matches?(sym, actual_args, ) method_name == sym && ArgumentMatching.all_match?(actual_args, args) && matches_block?([:with_block]) end |