Class: Waves::Configurations::Default
- Defined in:
- lib/runtime/configuration.rb
Overview
The Default configuration defines sensible defaults for attributes required by Waves.
Class Method Summary collapse
-
.application(&block) ⇒ Object
Defines the application for use with Rack.
-
.mime_types ⇒ Object
Provides access to the Waves::MimeTypes class via the configuration.
Methods inherited from Base
[], []=, attribute, attributes
Class Method Details
.application(&block) ⇒ Object
Defines the application for use with Rack. Treat this method like an instance of Rack::Builder
75 76 77 78 79 80 81 |
# File 'lib/runtime/configuration.rb', line 75 def self.application( &block ) if block_given? self['application'] = Rack::Builder.new( &block ) else self['application'] end end |