Class: Playbook::PbTimeStacked::TimeStacked
- Defined in:
- app/pb_kits/playbook/pb_time_stacked/time_stacked.rb
Instance Method Summary collapse
- #classname ⇒ Object
- #format_time_string ⇒ Object
- #format_timezone_string ⇒ Object
- #pb_date_time ⇒ Object
Methods inherited from KitBase
Methods included from Cursor
#cursor_options, #cursor_props, #cursor_values, included
Methods included from Display
#display_options, #display_props, #display_values, included
Methods included from LineHeight
included, #line_height_options, #line_height_props, #line_height_values
Methods included from Shadow
included, #shadow_options, #shadow_props, #shadow_values
Methods included from NumberSpacing
Methods included from ZIndex
Methods included from Spacing
included, #max_width_options, #max_width_props, #max_width_values, #spacing_options, #spacing_props, #spacing_values
Methods included from Classnames
#generate_classname, #generate_classname_without_spacing, included
Methods included from Playbook::Props
Methods included from Playbook::PbKitHelper
Methods included from Playbook::PbFormsHelper
Instance Method Details
#classname ⇒ Object
12 13 14 15 |
# File 'app/pb_kits/playbook/pb_time_stacked/time_stacked.rb', line 12 def classname # convert deprecated prop values generate_classname("pb_time_stacked_kit", align) end |
#format_time_string ⇒ Object
17 18 19 |
# File 'app/pb_kits/playbook/pb_time_stacked/time_stacked.rb', line 17 def format_time_string "#{pb_date_time.to_hour}:#{pb_date_time.to_minutes}#{pb_date_time.to_meridian}" end |
#format_timezone_string ⇒ Object
21 22 23 |
# File 'app/pb_kits/playbook/pb_time_stacked/time_stacked.rb', line 21 def format_timezone_string pb_date_time.to_timezone.to_s end |
#pb_date_time ⇒ Object
25 26 27 |
# File 'app/pb_kits/playbook/pb_time_stacked/time_stacked.rb', line 25 def pb_date_time Playbook::PbKit::PbDateTime.new(time, timezone) end |