Method: Satis::Tab::Component#initialize

Defined in:
app/components/satis/tab/component.rb

#initialize(name, *args, &block) ⇒ Component

Returns a new instance of Component.



8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'app/components/satis/tab/component.rb', line 8

def initialize(name, *args, &block)
  super
  @name = name
  @options = args.extract_options!
  @args = args
  @icon = options[:icon]
  @id = options[:id]
  @badge = options[:badge]
  @tab_menu = options[:tab_menu]
  @block = block
  @selected_tab_index = options[:selected_tab_index]
  @dirty = options[:dirty]
end