Class: Lolita::Configuration::Field::Datetime
- Defined in:
- lib/lolita/configuration/field/date.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(*args) ⇒ Datetime
constructor
A new instance of Datetime.
Methods inherited from Base
#name=, #nested?, #nested_in?, #record_value, #set_attributes, #type, #type=, #type_name, #value, #value=
Methods included from Builder
#build, #builder_options, #default_builder, #get_builder
Constructor Details
#initialize(*args) ⇒ Datetime
Returns a new instance of Datetime.
6 7 8 9 |
# File 'lib/lolita/configuration/field/date.rb', line 6 def initialize *args @type="date" super end |
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format.
5 6 7 |
# File 'lib/lolita/configuration/field/date.rb', line 5 def format @format end |