Method: When::TM::Duration#==

Defined in:
lib/when_exe/tmduration.rb

#==(other) ⇒ Boolean

オブジェクトの同値

Parameters:

Returns:

  • (Boolean)
    true - 同値
    false - 非同値


173
174
175
176
# File 'lib/when_exe/tmduration.rb', line 173

def ==(other)
  return false unless other.instance_of?(self.class)
  return self.duration == other.duration
end