Class: Merrymenu::Tabs
- Inherits:
-
Object
- Object
- Merrymenu::Tabs
- Defined in:
- lib/merrymenu/builder.rb
Instance Attribute Summary collapse
-
#tabs ⇒ Object
Returns the value of attribute tabs.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize ⇒ Tabs
constructor
A new instance of Tabs.
- #tab(name, url, options = {}) ⇒ Object
Constructor Details
#initialize ⇒ Tabs
Returns a new instance of Tabs.
41 42 43 |
# File 'lib/merrymenu/builder.rb', line 41 def initialize @tabs = [] end |
Instance Attribute Details
#tabs ⇒ Object
Returns the value of attribute tabs.
39 40 41 |
# File 'lib/merrymenu/builder.rb', line 39 def tabs @tabs end |
Instance Method Details
#build ⇒ Object
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, ={}) @tabs << Tab.new(name, url, ) end |