Class: AnyValue::AnyTimeString

Inherits:
Anything
  • Object
show all
Defined in:
lib/any_value.rb

Instance Method Summary collapse

Methods inherited from Anything

#^, #initialize, #inspect, #to_ary, #to_str

Constructor Details

This class inherits a constructor from AnyValue::Anything

Instance Method Details

#==(o) ⇒ Object



269
270
271
272
273
274
# File 'lib/any_value.rb', line 269

def ==(o)
  Time.parse(o)
  true
rescue ArgumentError
  false
end