Class: Menuable::MenuDefinition
- Inherits:
-
Object
- Object
- Menuable::MenuDefinition
- Defined in:
- lib/menuable.rb
Overview
Value to set from controller
Constant Summary collapse
- NOTHING =
->(_) { true }
Class Method Summary collapse
Class Method Details
.actions(&value) ⇒ Object
54 55 56 57 58 |
# File 'lib/menuable.rb', line 54 def self.actions(&value) return @actions if value.nil? @actions = value end |
.loyalty(&value) ⇒ Object
48 49 50 51 52 |
# File 'lib/menuable.rb', line 48 def self.loyalty(&value) return (@loyalty || NOTHING) if value.nil? @loyalty = value end |
.single? ⇒ Boolean
44 45 46 |
# File 'lib/menuable.rb', line 44 def self.single? single end |