Class: StimulusPlumbers::Plumber::Base
- Inherits:
-
Object
- Object
- StimulusPlumbers::Plumber::Base
- Includes:
- Options::Aria, Options::Html, Renderer
- Defined in:
- lib/stimulus_plumbers/plumber/base.rb
Direct Known Subclasses
Components::Avatar, Components::Button, Components::Button::Group, Components::Calendar, Components::Calendar::Turbo, Components::Calendar::Turbo::DaysOfMonth, Components::Calendar::Turbo::DaysOfWeek, Components::Calendar::Turbo::MonthsOfYear, Components::Calendar::Turbo::YearsOfDecade, Components::Card, Components::Combobox, Components::Combobox::Date, Components::Combobox::Date::Navigation, Components::Combobox::Date::Navigator, Components::Combobox::Dropdown, Components::Combobox::Options, Components::Combobox::Options::Option, Components::Combobox::Options::OptionGroup, Components::Combobox::Time, Components::Combobox::Time::Drum, Components::Combobox::Trigger, Components::Combobox::Typeahead, Components::Divider, Components::Icon, Components::InputGroup, Components::Link, Components::List, Components::List::Item, Components::List::Section, Components::Popover, Components::Popover::Panel, Components::Popover::Trigger, Form::Fields::Error, Form::Fields::Fieldset, Form::Fields::Group, Form::Fields::Hint, Form::Fields::Label, Form::Fields::Label::Floating
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 Renderer
#set_slots, #slot_block_for, #slot_kwargs_for, #slot_renderable?
Methods included from Options::Aria
Methods included from Options::Html
Constructor Details
#initialize(template) ⇒ Base
Returns a new instance of Base.
16 17 18 |
# File 'lib/stimulus_plumbers/plumber/base.rb', line 16 def initialize(template) @template = template end |
Instance Attribute Details
#template ⇒ Object (readonly)
Returns the value of attribute template.
14 15 16 |
# File 'lib/stimulus_plumbers/plumber/base.rb', line 14 def template @template end |
Instance Method Details
#theme ⇒ Object
20 21 22 |
# File 'lib/stimulus_plumbers/plumber/base.rb', line 20 def theme StimulusPlumbers.config.theme.current end |