Top Level Namespace

Includes:
DataMapper::Sweatshop::Unique

Defined Under Namespace

Modules: Integrity Classes: Array, Object

Instance Method Summary collapse

Instance Method Details

#create_notifier!(name) ⇒ Object



11
12
13
14
15
16
17
18
19
20
# File 'lib/integrity/notifier/test/fixtures.rb', line 11

def create_notifier!(name)
  klass = Class.new(Integrity::Notifier::Base) do
    def self.to_haml; "";   end
    def deliver!;     nil;  end
  end

  unless Integrity::Notifier.const_defined?(name)
    Integrity::Notifier.const_set(name, klass)
  end
end