Class: Merrymenu::Menu
- Inherits:
-
Object
- Object
- Merrymenu::Menu
- Includes:
- ActiveSupport::Configurable
- Defined in:
- lib/merrymenu/builder.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#tabs ⇒ Object
Returns the value of attribute tabs.
-
#use_I18n_translation ⇒ Object
Returns the value of attribute use_I18n_translation.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize ⇒ Menu
constructor
A new instance of Menu.
- #menu(name = "menu", options = {}) {|tabs| ... } ⇒ Object
Constructor Details
#initialize ⇒ Menu
Returns a new instance of Menu.
22 23 24 |
# File 'lib/merrymenu/builder.rb', line 22 def initialize self.use_I18n_translation = false end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
20 21 22 |
# File 'lib/merrymenu/builder.rb', line 20 def name @name end |
#tabs ⇒ Object
Returns the value of attribute tabs.
20 21 22 |
# File 'lib/merrymenu/builder.rb', line 20 def tabs @tabs end |
#use_I18n_translation ⇒ Object
Returns the value of attribute use_I18n_translation.
20 21 22 |
# File 'lib/merrymenu/builder.rb', line 20 def use_I18n_translation @use_I18n_translation end |
Instance Method Details
#build ⇒ Object
33 34 35 |
# File 'lib/merrymenu/builder.rb', line 33 def build tabs end |