Class: UI::ItemDescription

Inherits:
Phlex::HTML
  • Object
show all
Includes:
ItemDescriptionBehavior
Defined in:
app/components/ui/item_description.rb

Instance Method Summary collapse

Methods included from ItemDescriptionBehavior

#item_description_classes, #item_description_html_attributes

Constructor Details

#initialize(classes: "", **attributes) ⇒ ItemDescription

Returns a new instance of ItemDescription.



6
7
8
9
# File 'app/components/ui/item_description.rb', line 6

def initialize(classes: "", **attributes)
  @classes = classes
  @attributes = attributes
end

Instance Method Details

#view_template(&block) ⇒ Object



11
12
13
# File 'app/components/ui/item_description.rb', line 11

def view_template(&block)
  p(**item_description_html_attributes, &block)
end