Module: Bummer::Config

Defined in:
lib/bummer/config.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.applicationObject

Returns the value of attribute application.



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

def application
  @application
end

.hostObject

Returns the value of attribute host.



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

def host
  @host
end

.installationObject

Returns the value of attribute installation.



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

def installation
  @installation
end

.portObject

Returns the value of attribute port.



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

def port
  @port
end

Class Method Details

.configure(&block) ⇒ Object



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

def configure(&block)
  @configuration = block
end

.configure!Object



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

def configure!
  @configuration.call(self) if @configuration
end