Module: ZonelessTime::TimeExtension::InstanceMethods
- Defined in:
- lib/zoneless_time/time_extension.rb
Instance Method Summary collapse
Instance Method Details
#==(other) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/zoneless_time/time_extension.rb', line 4 def ==(other) if other.is_a? self.class self.without_zone.matches? other else super(other) end end |
#without_zone ⇒ Object
12 13 14 |
# File 'lib/zoneless_time/time_extension.rb', line 12 def without_zone ZonelessTime::TimeWithoutZone.at(self) end |