Class: Spy::Collection::Entry
- Inherits:
-
Struct
- Object
- Struct
- Spy::Collection::Entry
- Extended by:
- ClassMethods
- Defined in:
- lib/spy/collection/entry.rb
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#method_type ⇒ Object
Returns the value of attribute method_type.
-
#msg ⇒ Object
Returns the value of attribute msg.
-
#receiver ⇒ Object
Returns the value of attribute receiver.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Methods included from ClassMethods
Instance Attribute Details
#method_type ⇒ Object
Returns the value of attribute method_type
3 4 5 |
# File 'lib/spy/collection/entry.rb', line 3 def method_type @method_type end |
#msg ⇒ Object
Returns the value of attribute msg
3 4 5 |
# File 'lib/spy/collection/entry.rb', line 3 def msg @msg end |
#receiver ⇒ Object
Returns the value of attribute receiver
3 4 5 |
# File 'lib/spy/collection/entry.rb', line 3 def receiver @receiver end |
#value ⇒ Object
Returns the value of attribute value.
4 5 6 |
# File 'lib/spy/collection/entry.rb', line 4 def value @value end |
Instance Method Details
#==(other) ⇒ Object
10 11 12 |
# File 'lib/spy/collection/entry.rb', line 10 def ==(other) key == other.key end |
#key ⇒ Object
6 7 8 |
# File 'lib/spy/collection/entry.rb', line 6 def key "#{receiver.object_id}|#{msg}|#{method_type}" end |