class Geri::Config::MenuItem
Attributes
icon[R]
is_parent[R]
priority[R]
title[R]
Public Class Methods
new(title, path_or_options=nil, options={})
click to toggle source
# File lib/geri/config/menu_item.rb, line 6 def initialize(title, path_or_options=nil, options={}) if !path_or_options || path_or_options.is_a?(Hash) options = path_or_options if path_or_options @is_parent = true else @path = path_or_options end @icon = options[:icon] @title = title @priority = options[:priority] || 0 @menu_items = [] end
Public Instance Methods
path()
click to toggle source
# File lib/geri/config/menu_item.rb, line 25 def path "#{Geri::Config.admin_path}#{@path}" end
to_partial_path()
click to toggle source
# File lib/geri/config/menu_item.rb, line 29 def to_partial_path 'shared/menu_item' end