Class: DimensionsDisplay::Component

Inherits:
Lookbook::BaseComponent
  • Object
show all
Defined in:
app/components/lookbook/dimensions_display/component.rb

Instance Method Summary collapse

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