class AmaLayout::Agent::Navigation
Attributes
current_url[RW]
display_name[RW]
user[RW]
Public Class Methods
new(args = {})
click to toggle source
Calls superclass method
# File lib/ama_layout/agent/navigation.rb, line 12 def initialize(args = {}) args = defaults.merge args super end
Public Instance Methods
decorate()
click to toggle source
# File lib/ama_layout/agent/navigation.rb, line 6 def decorate AmaLayout::Agent::NavigationDecorator.new(self) end
items()
click to toggle source
# File lib/ama_layout/agent/navigation.rb, line 17 def items navigation_items.map do |n| NavigationItem.new n.merge({ current_url: current_url}) end end
Private Instance Methods
defaults()
click to toggle source
# File lib/ama_layout/agent/navigation.rb, line 29 def defaults { nav_file_path: File.join(Gem.loaded_specs["ama_layout"].full_gem_path, "lib", "ama_layout", "agent_navigation.yml") } end