Class: Rayo::Application

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/rayo/application.rb

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Class Attribute Details

.configObject

Returns the value of attribute config.



11
12
13
# File 'lib/rayo/application.rb', line 11

def config
  @config
end

Class Method Details

.configure {|@config ||= Rayo::Config.new| ... } ⇒ Object

Configure application

Yields:



14
15
16
# File 'lib/rayo/application.rb', line 14

def configure
  yield @config ||= Rayo::Config.new
end

Instance Method Details

#configObject



20
21
22
# File 'lib/rayo/application.rb', line 20

def config
  self.class.config
end