Class: Clot::SelectTime

Inherits:
MultiDateTag show all
Defined in:
lib/clot/date_tags.rb

Constant Summary

Constants inherited from ClotTag

ClotTag::Syntax

Instance Method Summary collapse

Methods inherited from MultiDateTag

#personal_attributes, #render, #render_units, #set_primary_attributes, #set_unit, #time_unit

Methods inherited from ClotTag

#initialize, #render

Methods included from TagHelper

#resolve_value, #split_params

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