Sha256: 39ff0e4dcc4804681442d60eef4a97323ba311216774b43ee8ee7d933fac05a6

Contents?: true

Size: 446 Bytes

Versions: 5

Compression:

Stored size: 446 Bytes

Contents

module Inch
  # Stores the configuration for Inch
  #
  # @see config/defaults.rb
  class Config
    class << self
      attr_accessor :instance

      def codebase
        self.instance ||= Config::Base.new
        instance.codebase
      end

      def run(&block)
        self.instance ||= Config::Base.new
        instance.update(&block)
        instance
      end
    end
  end
end

require 'inch/config/base'
require 'inch/config/codebase'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
inch-0.5.0.rc3 lib/inch/config.rb
inch-0.5.0.rc2 lib/inch/config.rb
inch-0.5.0.rc1 lib/inch/config.rb
inch-0.4.6 lib/inch/config.rb
inch-0.4.5 lib/inch/config.rb