Class: TWKB::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/twkb/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



8
9
10
11
12
# File 'lib/twkb/config.rb', line 8

def initialize
  read
  prepare
  build_stages
end

Instance Attribute Details

#stage_namesObject (readonly)

Returns the value of attribute stage_names.



5
6
7
# File 'lib/twkb/config.rb', line 5

def stage_names
  @stage_names
end

#stagesObject

Returns the value of attribute stages.



6
7
8
# File 'lib/twkb/config.rb', line 6

def stages
  @stages
end

Instance Method Details

#[](val) ⇒ Object



14
15
16
# File 'lib/twkb/config.rb', line 14

def [](val)
  @config[val]
end