Class: StimulusPlumbers::Components::Calendar::Turbo::DaysOfWeek
- Inherits:
-
Plumber::Base
- Object
- Plumber::Base
- StimulusPlumbers::Components::Calendar::Turbo::DaysOfWeek
- Defined in:
- lib/stimulus_plumbers/components/calendar/turbo/days_of_week.rb
Constant Summary collapse
- WEEKDAY_FORMATS =
%i[narrow short long].freeze
Instance Attribute Summary collapse
-
#format ⇒ Object
readonly
Returns the value of attribute format.
Attributes inherited from Plumber::Base
Instance Method Summary collapse
-
#initialize(template, format: :short) ⇒ DaysOfWeek
constructor
A new instance of DaysOfWeek.
- #render ⇒ Object
Methods inherited from Plumber::Base
Methods included from Plumber::Renderer
#set_slots, #slot_block_for, #slot_kwargs_for, #slot_renderable?
Methods included from Plumber::Options::Aria
Methods included from Plumber::Options::Html
Constructor Details
#initialize(template, format: :short) ⇒ DaysOfWeek
Returns a new instance of DaysOfWeek.
12 13 14 15 |
# File 'lib/stimulus_plumbers/components/calendar/turbo/days_of_week.rb', line 12 def initialize(template, format: :short) super(template) @format = format end |
Instance Attribute Details
#format ⇒ Object (readonly)
Returns the value of attribute format.
10 11 12 |
# File 'lib/stimulus_plumbers/components/calendar/turbo/days_of_week.rb', line 10 def format @format end |
Instance Method Details
#render ⇒ Object
17 18 19 |
# File 'lib/stimulus_plumbers/components/calendar/turbo/days_of_week.rb', line 17 def render(...) render_days_of_week(...) end |