Class: AdminFu::Menu::Entry

Inherits:
Hash
  • Object
show all
Defined in:
lib/admin_fu/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pathObject

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