Class: FlexMock::CallRecord
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
107 108 109 |
# File 'lib/flexmock/core.rb', line 107 def args @args end |
#block_given ⇒ Object
Returns the value of attribute block_given
107 108 109 |
# File 'lib/flexmock/core.rb', line 107 def block_given @block_given end |
#expectation ⇒ Object
Returns the value of attribute expectation
107 108 109 |
# File 'lib/flexmock/core.rb', line 107 def expectation @expectation end |
#method_name ⇒ Object
Returns the value of attribute method_name
107 108 109 |
# File 'lib/flexmock/core.rb', line 107 def method_name @method_name end |
Instance Method Details
#matches?(sym, actual_args, options) ⇒ Boolean
108 109 110 111 112 |
# File 'lib/flexmock/core.rb', line 108 def matches?(sym, actual_args, ) method_name == sym && ArgumentMatching.all_match?(actual_args, args) && matches_block?([:with_block]) end |