Class: Jschematic::Attributes::Format::Date
- Inherits:
-
Object
- Object
- Jschematic::Attributes::Format::Date
show all
- Includes:
- Element
- Defined in:
- lib/jschematic/attributes/format.rb
Instance Attribute Summary
Attributes included from Element
#id, #parent
Instance Method Summary
collapse
Methods included from Element
#required?, #title, #to_s
Instance Method Details
#accepts?(date) ⇒ Boolean
71
72
73
74
75
|
# File 'lib/jschematic/attributes/format.rb', line 71
def accepts?(date)
::Date.strptime(date)
rescue ArgumentError
false
end
|