Class: UI::Small
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::Small
- Defined in:
- app/components/ui/small.rb
Instance Method Summary collapse
-
#initialize(classes: nil, **attributes) ⇒ Small
constructor
A new instance of Small.
- #view_template(&block) ⇒ Object
Constructor Details
#initialize(classes: nil, **attributes) ⇒ Small
Returns a new instance of Small.
5 6 7 8 |
# File 'app/components/ui/small.rb', line 5 def initialize(classes: nil, **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#view_template(&block) ⇒ Object
10 11 12 13 14 |
# File 'app/components/ui/small.rb', line 10 def view_template(&block) extend UI::SmallBehavior small(**small_html_attributes.merge(@attributes), &block) end |