Class: Hypercuke::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



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

def initialize
  @layers = NameList.new
  @topics = NameList.new
end

Instance Attribute Details

#layersObject (readonly)

Returns the value of attribute layers.



4
5
6
# File 'lib/hypercuke/config.rb', line 4

def layers
  @layers
end

#topicsObject (readonly)

Returns the value of attribute topics.



4
5
6
# File 'lib/hypercuke/config.rb', line 4

def topics
  @topics
end

Instance Method Details

#layer_namesObject



10
11
12
# File 'lib/hypercuke/config.rb', line 10

def layer_names
  layers.to_a
end

#topic_namesObject



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

def topic_names
  topics.to_a
end