| Class | Waves::Configurations::Default |
| In: |
lib/runtime/configuration.rb
|
| Parent: | Base |
Defines the application for use with Rack. Treat this method like an instance of Rack::Builder
# File lib/runtime/configuration.rb, line 75
75: def self.application( &block )
76: if block_given?
77: self['application'] = Rack::Builder.new( &block )
78: else
79: self['application']
80: end
81: end
Provides access to the Waves::MimeTypes class via the configuration. You can override mime_types to return your own MIME types repository class.
# File lib/runtime/configuration.rb, line 69
69: def self.mime_types
70: Waves::MimeTypes
71: end