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
avm-eac_ruby_base1-0.35.1 lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
eac_tools-0.96.1 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
avm-eac_ruby_base1-0.35.0 lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
eac_tools-0.95.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
avm-eac_ruby_base1-0.34.1 lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
eac_tools-0.91.1 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
avm-eac_ruby_base1-0.34.0 lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
eac_tools-0.91.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
avm-eac_ruby_base1-0.33.1 lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
eac_tools-0.83.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
eac_tools-0.82.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
eac_tools-0.81.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
avm-eac_ruby_base1-0.33.0 lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
eac_tools-0.80.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
eac_tools-0.79.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
avm-eac_ruby_base1-0.32.1 lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
eac_tools-0.78.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
avm-eac_ruby_base1-0.32.0 lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
eac_tools-0.77.1 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb
eac_tools-0.77.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb