Sha256: 293732b43fe61fb4c8a42dd34d77754c56cfa0731384d9e8d83c945ede9dab0a

Contents?: true

Size: 313 Bytes

Versions: 18

Compression:

Stored size: 313 Bytes

Contents

class Flail
  module ClassMethods
    def configure(&block)
      configuration.instance_eval(&block)
    end

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

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
flail-1.1.1 lib/flail/base.rb
flail-1.1.0 lib/flail/base.rb
flail-1.0.1 lib/flail/base.rb
flail-1.0.0 lib/flail/base.rb
flail-0.1.6 lib/flail/base.rb
flail-0.1.5 lib/flail/base.rb
flail-0.1.4 lib/flail/base.rb
flail-0.1.3 lib/flail/base.rb
flail-0.1.2 lib/flail/base.rb
flail-0.1.1 lib/flail/base.rb
flail-0.1.0 lib/flail/base.rb
flail-0.0.7 lib/flail/base.rb
flail-0.0.6 lib/flail/base.rb
flail-0.0.5 lib/flail/base.rb
flail-0.0.4 lib/flail/base.rb
flail-0.0.3 lib/flail/base.rb
flail-0.0.2 lib/flail/base.rb
flail-0.0.1 lib/flail/base.rb