Module: Belafonte::Helpers::Flags
- Included in:
- Belafonte::Helpers
- Defined in:
- lib/belafonte/helpers/flags.rb
Instance Method Summary collapse
Instance Method Details
#option(option) ⇒ Object
16 17 18 |
# File 'lib/belafonte/helpers/flags.rb', line 16 def option(option) [option] end |
#options ⇒ Object
12 13 14 |
# File 'lib/belafonte/helpers/flags.rb', line 12 def @options ||= {} end |
#switch_active?(switch) ⇒ Boolean
8 9 10 |
# File 'lib/belafonte/helpers/flags.rb', line 8 def switch_active?(switch) switches[switch] end |
#switches ⇒ Object
4 5 6 |
# File 'lib/belafonte/helpers/flags.rb', line 4 def switches @switches ||= {} end |