Class: Called::Record
- Inherits:
-
Struct
- Object
- Struct
- Called::Record
- Defined in:
- lib/called.rb
Instance Attribute Summary collapse
-
#called_from ⇒ Object
Returns the value of attribute called_from.
-
#method_name ⇒ Object
Returns the value of attribute method_name.
Instance Method Summary collapse
Instance Attribute Details
#called_from ⇒ Object
Returns the value of attribute called_from
20 21 22 |
# File 'lib/called.rb', line 20 def called_from @called_from end |
#method_name ⇒ Object
Returns the value of attribute method_name
20 21 22 |
# File 'lib/called.rb', line 20 def method_name @method_name end |
Instance Method Details
#eql?(record) ⇒ Boolean
25 26 27 28 |
# File 'lib/called.rb', line 25 def eql? record method_name == record.method_name && called_from == record.called_from end |
#hash ⇒ Object
21 22 23 |
# File 'lib/called.rb', line 21 def hash [method_name, called_from].hash end |