Class: FlexMock::CallRecord
- Defined in:
- lib/flexmock/call_record.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#block ⇒ Object
Returns the value of attribute block.
-
#expectation ⇒ Object
Returns the value of attribute expectation.
-
#kw ⇒ Object
Returns the value of attribute kw.
-
#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 ⇒ Object
Returns the value of attribute block
14 15 16 |
# File 'lib/flexmock/call_record.rb', line 14 def block @block end |
#expectation ⇒ Object
Returns the value of attribute expectation
14 15 16 |
# File 'lib/flexmock/call_record.rb', line 14 def expectation @expectation end |
#kw ⇒ Object
Returns the value of attribute kw
14 15 16 |
# File 'lib/flexmock/call_record.rb', line 14 def kw @kw 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, expected_args, expected_kw, options) ⇒ Boolean
15 16 17 18 19 20 |
# File 'lib/flexmock/call_record.rb', line 15 def matches?(sym, expected_args, expected_kw, ) method_name == sym && ArgumentMatching.all_match_args?(expected_args, args) && ArgumentMatching.all_match_kw?(expected_kw, kw) && matches_block?([:with_block]) end |