Sha256: a129c4d55e320ce71e012103f17c69e9b51cf56f5e494919383b255de8086a2e

Contents?: true

Size: 592 Bytes

Versions: 4

Compression:

Stored size: 592 Bytes

Contents

module AssMaintainer
  #
  class InfoBase
    ASS_PLATFORM_REQUIRE = ENV['ASS_PLATFORM_REQUIRE'] || '> 0'

    # Settings for {InfoBase}
    class Config
      # Set reqirement for version of 1C:Enterprise
      attr_writer :platform_require
      # Reqirement for version of 1C:Enterprise
      # @return [String]
      def platform_require
        @platform_require ||= ASS_PLATFORM_REQUIRE
      end
    end

    # Make settings
    def self.configure
      yield config
    end

    # Get settings
    # @return [Config]
    def self.config
      @config ||= Config.new
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ass_maintainer-info_base-1.0.0 lib/ass_maintainer/info_base/config.rb
ass_maintainer-info_base-0.1.2 lib/ass_maintainer/info_base/config.rb
ass_maintainer-info_base-0.1.1 lib/ass_maintainer/info_base/config.rb
ass_maintainer-info_base-0.1.0 lib/ass_maintainer/info_base/config.rb