Class: Flaun::Config
- Inherits:
-
Object
- Object
- Flaun::Config
- Defined in:
- lib/flaun/config.rb
Instance Attribute Summary collapse
-
#port ⇒ Object
Returns the value of attribute port.
-
#targets ⇒ Object
Returns the value of attribute targets.
Instance Method Summary collapse
- #[](name) ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
5 6 7 8 |
# File 'lib/flaun/config.rb', line 5 def initialize @targets = {} @port = 3000 end |
Instance Attribute Details
#port ⇒ Object
Returns the value of attribute port.
3 4 5 |
# File 'lib/flaun/config.rb', line 3 def port @port end |
#targets ⇒ Object
Returns the value of attribute targets.
3 4 5 |
# File 'lib/flaun/config.rb', line 3 def targets @targets end |
Instance Method Details
#[](name) ⇒ Object
10 11 12 |
# File 'lib/flaun/config.rb', line 10 def [](name) @targets[name] end |