Class: StimulusPlumbers::Components::Card

Inherits:
Plumber::Base show all
Defined in:
lib/stimulus_plumbers/components/card.rb,
lib/stimulus_plumbers/components/card/section.rb

Defined Under Namespace

Classes: Section

Constant Summary

Constants included from Plumber::HtmlOptions

Plumber::HtmlOptions::STIMULUS_SPACEJOIN_KEYS

Instance Attribute Summary

Attributes inherited from Plumber::Base

#template

Instance Method Summary collapse

Methods inherited from Plumber::Base

#initialize, #theme

Methods included from Plumber::HtmlOptions

#extract_classes, #merge_data_options, #merge_html_options, #merge_string_option, #normalize_part

Constructor Details

This class inherits a constructor from StimulusPlumbers::Plumber::Base

Instance Method Details

#renderObject



6
7
8
# File 'lib/stimulus_plumbers/components/card.rb', line 6

def render(...)
  render_card(...)
end

#sectionObject



10
11
12
# File 'lib/stimulus_plumbers/components/card.rb', line 10

def section(...)
  Card::Section.new(template).render(...)
end