Class: SimpleAttribute::Attributes::Datetime
- Defined in:
- lib/simple_attribute/attributes/datetime.rb
Instance Attribute Summary
Attributes inherited from Base
#attribute, #options, #record, #value
Instance Method Summary collapse
Methods inherited from Date
#date_format, #render_attribute
Methods inherited from Base
#attribute_name, #default_value, #defaults, #html_options, #initialize, #label_method, #method_missing, #render, #render_attribute, #render_default_value, #render_with_default, #render_wrapper, #renderer_name, #value?, #wrapper, #wrapper?, #wrapper_html
Constructor Details
This class inherits a constructor from SimpleAttribute::Attributes::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class SimpleAttribute::Attributes::Base
Instance Method Details
#default_format ⇒ Object
4 5 6 |
# File 'lib/simple_attribute/attributes/datetime.rb', line 4 def default_format '<date>%d %b %Y</date> <time>%H:%M</time>' end |