Sha256: 2846d54f14b426b5240cfb4c58a20470789b97ab9eae133321a43899db9a0ce5

Contents?: true

Size: 417 Bytes

Versions: 1

Compression:

Stored size: 417 Bytes

Contents

require "enmail/configuration"

module EnMail
  module Config
    def configure
      if block_given?
        yield configuration
      end
    end

    def configuration
      @configuration ||= EnMail::Configuration.new
    end
  end

  # Expose config module methods as class level method, so we can
  # use those method whenever necessary. Specially `configuration`
  # throughout the gem
  #
  extend Config
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enmail-0.1.0 lib/enmail/config.rb