Sha256: ef9c9bb0a8f8d96c64becff95fd97b75565a58659d25cf7429262cb41e9e3c45

Contents?: true

Size: 629 Bytes

Versions: 36

Compression:

Stored size: 629 Bytes

Contents

module Inch
  # Stores the configuration for Inch
  #
  # @see config/defaults.rb
  class Config
    class Base
      attr_reader :language

      def initialize(language)
        @language = language.to_sym
      end

      def update(&block)
        instance_eval(&block)
        self
      end

      def codebase(&block)
        @codebase ||= Config::Codebase.new(@language)
        @codebase.update(&block) if block
        @codebase
      end

      def evaluation(&block)
        @evaluation ||= Config::Evaluation.new(@language)
        @evaluation.update(&block) if block
        @evaluation
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
inch-0.9.0.rc1 lib/inch/config/base.rb
inch-0.8.0 lib/inch/config/base.rb
inch-0.8.0.rc2 lib/inch/config/base.rb
inch-0.8.0.rc1 lib/inch/config/base.rb
inch-0.7.1 lib/inch/config/base.rb
inch-0.7.0 lib/inch/config/base.rb
inch-0.6.4 lib/inch/config/base.rb
inch-0.6.3 lib/inch/config/base.rb
inch-0.6.2 lib/inch/config/base.rb
inch-0.6.1 lib/inch/config/base.rb
inch-0.6.0 lib/inch/config/base.rb
inch-0.6.0.rc6 lib/inch/config/base.rb
inch-0.6.0.rc5 lib/inch/config/base.rb
inch-0.6.0.rc4 lib/inch/config/base.rb
inch-0.6.0.rc3 lib/inch/config/base.rb
inch-0.6.0.rc2 lib/inch/config/base.rb
inch-0.6.0.rc1 lib/inch/config/base.rb
inch-0.5.10 lib/inch/config/base.rb
inch-0.5.9 lib/inch/config/base.rb
inch-0.5.8 lib/inch/config/base.rb