Sha256: b0057e7b70ea9817a9ff457246ba7f5735a521d4bed83085e73c414ecd36ff5c

Contents?: true

Size: 687 Bytes

Versions: 171

Compression:

Stored size: 687 Bytes

Contents

# frozen_string_literal: true

module Avm
  module EacRubyBase1
    module Sources
      module Tests
        class Multiple
          class Result
            common_constructor :result

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

            def tag
              result.to_s.send(color)
            end

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

Version data entries

171 entries across 171 versions & 2 rubygems

Version Path
eac_tools-0.7.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
avm-eac_ruby_base1-0.9.1 lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
eac_tools-0.6.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
eac_tools-0.5.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
avm-eac_ruby_base1-0.9.0 lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
eac_tools-0.4.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
eac_tools-0.3.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
eac_tools-0.2.2 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
avm-eac_ruby_base1-0.8.2 lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
avm-eac_ruby_base1-0.8.1 lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
avm-eac_ruby_base1-0.8.0 lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb