Class: StimulusPlumbers::Components::Plumber::Base
- Inherits:
-
Object
- Object
- StimulusPlumbers::Components::Plumber::Base
- Includes:
- HtmlOptions, Renderer
- Defined in:
- lib/stimulus_plumbers/components/plumber/base.rb
Direct Known Subclasses
ActionList::Renderer, Avatar::Renderer, Button::Renderer, Calendar::Month::Turbo::DaysOfMonth, Calendar::Month::Turbo::DaysOfWeek, Calendar::Month::Turbo::Renderer, Calendar::Renderer, Card::Renderer, DatePicker::Navigation, DatePicker::Navigator, DatePicker::Renderer, Icon::Renderer, StimulusPlumbers::Components::Popover::Renderer
Instance Attribute Summary collapse
-
#template ⇒ Object
readonly
Returns the value of attribute template.
Instance Method Summary collapse
-
#initialize(template) ⇒ Base
constructor
A new instance of Base.
- #theme ⇒ Object
Methods included from HtmlOptions
#merge_html_options, #merge_string_option, #normalize_part
Constructor Details
#initialize(template) ⇒ Base
Returns a new instance of Base.
12 13 14 |
# File 'lib/stimulus_plumbers/components/plumber/base.rb', line 12 def initialize(template) @template = template end |
Instance Attribute Details
#template ⇒ Object (readonly)
Returns the value of attribute template.
10 11 12 |
# File 'lib/stimulus_plumbers/components/plumber/base.rb', line 10 def template @template end |
Instance Method Details
#theme ⇒ Object
16 17 18 |
# File 'lib/stimulus_plumbers/components/plumber/base.rb', line 16 def theme StimulusPlumbers.config.theme end |