Class: AdminFu::Menu::Entry
- Inherits:
-
Hash
- Object
- Hash
- AdminFu::Menu::Entry
- Defined in:
- lib/admin_fu/config.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
- #action(action, path) ⇒ Object
-
#initialize(path) ⇒ Entry
constructor
A new instance of Entry.
Constructor Details
#initialize(path) ⇒ Entry
Returns a new instance of Entry.
16 17 18 |
# File 'lib/admin_fu/config.rb', line 16 def initialize(path) @path = path end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
14 15 16 |
# File 'lib/admin_fu/config.rb', line 14 def path @path end |
Instance Method Details
#action(action, path) ⇒ Object
20 21 22 |
# File 'lib/admin_fu/config.rb', line 20 def action(action, path) store(action, path) end |