Class: Merrymenu::Tabs

Inherits:
Object
  • Object
show all
Defined in:
lib/merrymenu/builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTabs

Returns a new instance of Tabs.



41
42
43
# File 'lib/merrymenu/builder.rb', line 41

def initialize
  @tabs = []
end

Instance Attribute Details

#tabsObject

Returns the value of attribute tabs.



39
40
41
# File 'lib/merrymenu/builder.rb', line 39

def tabs
  @tabs
end

Instance Method Details

#buildObject



49
50
51
# File 'lib/merrymenu/builder.rb', line 49

def build
  tabs
end

#tab(name, url, options = {}) ⇒ Object



45
46
47
# File 'lib/merrymenu/builder.rb', line 45

def tab(name, url, options={})
  @tabs << Tab.new(name, url, options)
end