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)
  options[option]
end

#optionsObject



12
13
14
# File 'lib/belafonte/helpers/flags.rb', line 12

def options
  @options ||= {}
end

#switch_active?(switch) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/belafonte/helpers/flags.rb', line 8

def switch_active?(switch)
  switches[switch]
end

#switchesObject



4
5
6
# File 'lib/belafonte/helpers/flags.rb', line 4

def switches
  @switches ||= {}
end