Class: EacRubyUtils::Gem::TestAll::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/eac_ruby_utils/gem/test_all.rb

Constant Summary collapse

COLORS =
{
  ::EacRubyUtils::Gem::Test::RESULT_FAILED => :red,
  ::EacRubyUtils::Gem::Test::RESULT_NONEXISTENT => :white,
  ::EacRubyUtils::Gem::Test::RESULT_SUCCESSFUL => :green
}.freeze

Instance Method Summary collapse

Instance Method Details

#colorObject



88
89
90
# File 'lib/eac_ruby_utils/gem/test_all.rb', line 88

def color
  COLORS.fetch(result)
end

#tagObject



84
85
86
# File 'lib/eac_ruby_utils/gem/test_all.rb', line 84

def tag
  result.to_s.send(color)
end