Class: Waves::Configurations::Default

Inherits:
Base show all
Defined in:
lib/runtime/configuration.rb

Overview

The Default configuration defines sensible defaults for attributes required by Waves.

Class Method Summary collapse

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

.mime_typesObject

Provides access to the Waves::MimeTypes class via the configuration. You can override #mime_types to return your own MIME types repository class.



69
70
71
# File 'lib/runtime/configuration.rb', line 69

def self.mime_types
  Waves::MimeTypes
end