Class: Navigation::Base
- Inherits:
-
Object
- Object
- Navigation::Base
- Defined in:
- lib/navigation/base.rb
Overview
superclass for all navigation classes (put common methods in here)
Direct Known Subclasses
Instance Method Summary collapse
-
#normalize(val) ⇒ Object
keep everything in the same format for setting/getting hash values.
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 |