Class: Clot::SelectDatetime
- Inherits:
-
MultiDateTag
- Object
- Liquid::Tag
- ClotTag
- MultiDateTag
- Clot::SelectDatetime
- Defined in:
- lib/clot/date_tags.rb
Instance Method Summary collapse
Methods inherited from MultiDateTag
#personal_attributes, #render, #render_units, #set_primary_attributes, #set_unit, #time_unit
Methods inherited from ClotTag
Methods included from TagHelper
Methods included from AttributeSetter
#personal_attributes, #set_attributes, #set_primary_attributes
Constructor Details
This class inherits a constructor from Clot::ClotTag
Instance Method Details
#render_nested(context) ⇒ Object
327 328 329 330 331 332 333 334 335 336 337 338 |
# File 'lib/clot/date_tags.rb', line 327 def render_nested(context) time_units = ["hour", "minute"] if @include_seconds time_units << "second" end time_result = render_units(time_units, context, @time_separator) order = @order || ['year', 'month', 'day'] date_result = render_units(order, context, @date_separator) date_result + @datetime_separator.to_s + time_result end |