Class: Flaun::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/flaun/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/flaun/config.rb', line 5

def initialize
  @targets = {}
  @port = 3000
end

Instance Attribute Details

#portObject

Returns the value of attribute port.



3
4
5
# File 'lib/flaun/config.rb', line 3

def port
  @port
end

#targetsObject

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