module Riffer::Rig::Support::Equatable
@rbs module-self Riffer::Rig::Support::_ToH
Public Instance Methods
(untyped other) → bool
Source
# File lib/riffer/rig/support/equatable.rb, line 7 def ==(other) other.class == self.class && other.to_h == to_h end
@rbs other: untyped @rbs return: bool
(untyped other) → bool
Source
# File lib/riffer/rig/support/equatable.rb, line 18 def eql?(other) self == other end
@rbs other: untyped @rbs return: bool
() → Integer
Source
# File lib/riffer/rig/support/equatable.rb, line 12 def hash [self.class, to_h].hash end
@rbs return: Integer