Class: Clot::SelectTime
- Inherits:
-
MultiDateTag
- Object
- Liquid::Tag
- ClotTag
- MultiDateTag
- Clot::SelectTime
- Defined in:
- lib/clot/date_tags.rb
Constant Summary
Constants inherited from ClotTag
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
317 318 319 320 321 322 323 |
# File 'lib/clot/date_tags.rb', line 317 def render_nested(context) units = ["hour", "minute"] if @include_seconds units << "second" end render_units(units, context, @time_separator) end |