Sha256: 2b94bfc82e5c46cdfcd7c40fcd4c601eb0f9e8977b71301e901d6fc33a7957cd

Contents?: true

Size: 455 Bytes

Versions: 7

Compression:

Stored size: 455 Bytes

Contents

require "ribose/configuration"

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

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

  # This following line exposes `Ribose::Config` moduel's methods in class
  # scope, so we can easily use those to configure or access Ribose config
  # throughout the gem and the client applications.
  #
  extend Config
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ribose-0.5.0 lib/ribose/config.rb
ribose-0.4.1 lib/ribose/config.rb
ribose-0.4.0 lib/ribose/config.rb
ribose-0.3.2 lib/ribose/config.rb
ribose-0.3.1 lib/ribose/config.rb
ribose-0.3.0 lib/ribose/config.rb
ribose-0.2.0 lib/ribose/config.rb