Class: Satis::SidebarMenu::Component

Inherits:
ApplicationComponent show all
Defined in:
app/components/satis/sidebar_menu/component.rb

Direct Known Subclasses

Mobile::Component

Instance Attribute Summary collapse

Attributes inherited from ApplicationComponent

#original_view_context

Instance Method Summary collapse

Methods inherited from ApplicationComponent

add_helper, #component_name

Constructor Details

#initialize(menu, **options) ⇒ Component

Returns a new instance of Component.



10
11
12
13
14
# File 'app/components/satis/sidebar_menu/component.rb', line 10

def initialize(menu, **options)
  super
  @menu = menu
  @menu_options = options
end

Instance Attribute Details

Returns the value of attribute menu.



6
7
8
# File 'app/components/satis/sidebar_menu/component.rb', line 6

def menu
  @menu
end

Returns the value of attribute menu_options.



6
7
8
# File 'app/components/satis/sidebar_menu/component.rb', line 6

def menu_options
  @menu_options
end