Class: DimensionsDisplay::Component
- Inherits:
-
Lookbook::BaseComponent
- Object
- Lookbook::BaseComponent
- DimensionsDisplay::Component
- Defined in:
- app/components/lookbook/dimensions_display/component.rb
Instance Method Summary collapse
-
#initialize(target:, **html_attrs) ⇒ Component
constructor
A new instance of Component.
Constructor Details
#initialize(target:, **html_attrs) ⇒ Component
Returns a new instance of Component.
3 4 5 6 7 |
# File 'app/components/lookbook/dimensions_display/component.rb', line 3 def initialize(target:, **html_attrs) @target = target @alpine_data = alpine_encode(@target) super(**html_attrs) end |