Exception: Menumatic::NavigationNotFound
- Defined in:
- lib/menumatic/exceptions.rb
Overview
Raised when a navigation cannot be found, usually from load_navigation
Instance Method Summary collapse
-
#initialize(navigation = nil) ⇒ NavigationNotFound
constructor
A new instance of NavigationNotFound.
- #to_s ⇒ Object
Constructor Details
#initialize(navigation = nil) ⇒ NavigationNotFound
Returns a new instance of NavigationNotFound.
9 10 11 12 |
# File 'lib/menumatic/exceptions.rb', line 9 def initialize( = nil) = = "No navigation not specified in call to render()." end |
Instance Method Details
#to_s ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/menumatic/exceptions.rb', line 14 def to_s if "Navigation file not found: #{@navigation}" else end end |