Module: Flail::ClassMethods

Included in:
Flail
Defined in:
lib/flail/base.rb

Instance Method Summary collapse

Instance Method Details

#configurationObject



7
8
9
# File 'lib/flail/base.rb', line 7

def configuration
  @configuration ||= Flail::Configuration.new.defaults!
end

#configure(&block) ⇒ Object



3
4
5
# File 'lib/flail/base.rb', line 3

def configure(&block)
  configuration.instance_eval(&block)
end

#swing(payload) ⇒ Object



11
12
13
# File 'lib/flail/base.rb', line 11

def swing(payload)
  Flail.configuration.handler.call(payload)
end