Sha256: 561083361b339f108577f7e9a58e80057ad970845ef2eb9ea586983e68e4cf9e

Contents?: true

Size: 543 Bytes

Versions: 99

Compression:

Stored size: 543 Bytes

Contents

# frozen_string_literal: true

module EacRubyGemsUtils
  module Tests
    class Multiple
      class Result
        common_constructor :result

        COLORS = {
          ::EacRubyGemsUtils::Tests::Base::RESULT_FAILED => :red,
          ::EacRubyGemsUtils::Tests::Base::RESULT_NONEXISTENT => :white,
          ::EacRubyGemsUtils::Tests::Base::RESULT_SUCCESSFUL => :green
        }.freeze

        def tag
          result.to_s.send(color)
        end

        def color
          COLORS.fetch(result)
        end
      end
    end
  end
end

Version data entries

99 entries across 99 versions & 3 rubygems

Version Path
avm-tools-0.120.0 sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb
avm-tools-0.119.0 sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb
avm-tools-0.118.0 sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb
avm-tools-0.117.3 sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb
avm-tools-0.117.2 sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb
avm-tools-0.117.1 sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb
avm-tools-0.117.0 sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb
avm-tools-0.116.2 sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb
eac_ruby_gems_utils-0.9.10 lib/eac_ruby_gems_utils/tests/multiple/result.rb
avm-tools-0.116.1 sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb
avm-tools-0.116.0 sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb
avm-tools-0.115.0 sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb
avm-tools-0.114.2 sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb
avm-tools-0.114.1 sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb
avm-tools-0.114.0 sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb
avm-tools-0.113.6 sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb
avm-tools-0.113.5 sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb
avm-tools-0.113.4 sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb
avm-tools-0.113.3 sub/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb
eac_ruby_gems_utils-0.9.9 lib/eac_ruby_gems_utils/tests/multiple/result.rb