Method: Nav::Component#initialize

Defined in:
app/components/lookbook/nav/component.rb

#initialize(tree:, id: nil, **attrs) ⇒ Component

Returns a new instance of Component.



8
9
10
11
12
# File 'app/components/lookbook/nav/component.rb', line 8

def initialize(tree:, id: nil, **attrs)
  @id = id
  @tree = tree
  super(**attrs, id: id)
end