Class: Navigation::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/navigation/base.rb

Overview

superclass for all navigation classes (put common methods in here)

Direct Known Subclasses

Builder, Menu, Navigator, NestedMenu

Instance Method Summary collapse

Instance Method Details

#normalize(val) ⇒ Object

keep everything in the same format for setting/getting hash values



7
8
9
# File 'lib/navigation/base.rb', line 7

def normalize(val)
  val.to_s.underscore.sub(/_controller$/, '')
end