Class: Hypercuke::Config
- Inherits:
-
Object
- Object
- Hypercuke::Config
- Defined in:
- lib/hypercuke/config.rb
Instance Attribute Summary collapse
-
#layers ⇒ Object
readonly
Returns the value of attribute layers.
-
#topics ⇒ Object
readonly
Returns the value of attribute topics.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #layer_names ⇒ Object
- #topic_names ⇒ Object
Constructor Details
#initialize ⇒ Config
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
#layers ⇒ Object (readonly)
Returns the value of attribute layers.
4 5 6 |
# File 'lib/hypercuke/config.rb', line 4 def layers @layers end |
#topics ⇒ Object (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_names ⇒ Object
10 11 12 |
# File 'lib/hypercuke/config.rb', line 10 def layer_names layers.to_a end |
#topic_names ⇒ Object
14 15 16 |
# File 'lib/hypercuke/config.rb', line 14 def topic_names topics.to_a end |