Class: Called::Record

Inherits:
Struct
  • Object
show all
Defined in:
lib/called.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#called_fromObject

Returns the value of attribute called_from

Returns:

  • (Object)

    the current value of called_from



20
21
22
# File 'lib/called.rb', line 20

def called_from
  @called_from
end

#method_nameObject

Returns the value of attribute method_name

Returns:

  • (Object)

    the current value of method_name



20
21
22
# File 'lib/called.rb', line 20

def method_name
  @method_name
end

Instance Method Details

#eql?(record) ⇒ Boolean

Returns:

  • (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

#hashObject



21
22
23
# File 'lib/called.rb', line 21

def hash
  [method_name, called_from].hash
end