Class: Merrymenu::Configure
- Inherits:
-
Object
- Object
- Merrymenu::Configure
- Defined in:
- lib/merrymenu/builder.rb
Instance Attribute Summary collapse
-
#menus ⇒ Object
Returns the value of attribute menus.
Instance Method Summary collapse
- #configure {|menu| ... } ⇒ Object
-
#initialize ⇒ Configure
constructor
A new instance of Configure.
Constructor Details
#initialize ⇒ Configure
Returns a new instance of Configure.
6 7 8 |
# File 'lib/merrymenu/builder.rb', line 6 def initialize = {} end |
Instance Attribute Details
#menus ⇒ Object
Returns the value of attribute menus.
4 5 6 |
# File 'lib/merrymenu/builder.rb', line 4 def end |
Instance Method Details
#configure {|menu| ... } ⇒ Object
10 11 12 13 14 |
# File 'lib/merrymenu/builder.rb', line 10 def configure = Menu.new yield [.name] = .build end |