Module: Mastiff

Defined in:
lib/mastiff/null_worker.rb,
lib/mastiff.rb,
lib/mastiff/email.rb,
lib/mastiff/engine.rb,
lib/mastiff/message.rb,
lib/mastiff/version.rb,
lib/mastiff/null_uploader.rb,
lib/generators/mastiff/views/views_generator.rb,
lib/generators/mastiff/install/install_generator.rb

Overview

When a generator is invoked, each public method in the generator is executed sequentially in the order that it is defined. guides.rubyonrails.org/generators.html

require ‘rails/generators’

Defined Under Namespace

Modules: Email Classes: Engine, InstallGenerator, NullUploader, NullWorker, ViewsGenerator

Constant Summary collapse

VERSION =
"0.1.1"
@@message_settings =
{}
@@redis_options =
{host:  '127.0.0.1', port: 6379}
@@process_attachment_worker =
NullWorker.new
@@sync_attachment_worker =
NullWorker
@@attachment_uploader =
NullUploader
@@attachment_dir =
'/tmp'
@@mailbox_folders =
{}

Class Method Summary collapse

Class Method Details

.configure {|_self| ... } ⇒ Object

Yield self on setup for nice config blocks

Yields:

  • (_self)

Yield Parameters:

  • _self (Mastiff)

    the object that the method was called on



40
41
42
# File 'lib/mastiff.rb', line 40

def self.configure(&block)
  yield self
end