Class: AnyValue::AnyDateString

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



290
291
292
293
294
295
# File 'lib/any_value.rb', line 290

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