Sha256: 07e4db066a286a8e8fb9c47f32fc53eda7949cbd3dd758a7ca98d67893fa965c

Contents?: true

Size: 446 Bytes

Versions: 4

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

4 entries across 4 versions & 1 rubygems

Version Path
inch-0.4.10 lib/inch/config.rb
inch-0.4.9 lib/inch/config.rb
inch-0.4.8 lib/inch/config.rb
inch-0.4.7 lib/inch/config.rb