Module: Griddler

Defined in:
lib/griddler/email.rb,
lib/griddler/engine.rb,
lib/griddler/errors.rb,
lib/griddler/version.rb,
lib/griddler/configuration.rb,
lib/griddler/adapter_registry.rb,
lib/griddler/route_extensions.rb

Defined Under Namespace

Modules: EmailParser, Errors, RouteExtensions, Testing Classes: AdapterRegistry, Configuration, Email, EmailsController, Engine, Error

Constant Summary collapse

VERSION =
'1.5.2'
@@configuration =
nil

Class Method Summary collapse

Class Method Details

.adapter_registryObject


25
26
27
# File 'lib/griddler/adapter_registry.rb', line 25

def self.adapter_registry
  @adapter_registry ||= AdapterRegistry.new
end

.configurationObject


14
15
16
# File 'lib/griddler/configuration.rb', line 14

def self.configuration
  @@configuration || configure
end

.configureObject


4
5
6
7
8
9
10
11
12
# File 'lib/griddler/configuration.rb', line 4

def self.configure
  @@configuration = Configuration.new

  if block_given?
    yield configuration
  end

  configuration
end