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