Method: Embed::Component#initialize
- Defined in:
- app/components/lookbook/embed/component.rb
#initialize(id:, example:, params: {}, opts: {}, max_height: nil, **html_attrs) ⇒ Component
Returns a new instance of Component.
3 4 5 6 7 8 9 10 |
# File 'app/components/lookbook/embed/component.rb', line 3 def initialize(id:, example:, params: {}, opts: {}, max_height: nil, **html_attrs) @id = id @target = example @params = params @opts = opts @max_height = max_height super(**html_attrs) end |