Module: DeepCover::ExpressionDebugger::ColorAST

Defined in:
lib/deep_cover/expression_debugger.rb

Instance Method Summary collapse

Instance Method Details

#fancy_typeObject



8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/deep_cover/expression_debugger.rb', line 8

def fancy_type
  color = case
          when !executable?
            :faint
          when !was_executed?
            :red
          when flow_interrupt_count > 0
            :yellow
          else
            :green
          end
  Term::ANSIColor.send(color, super)
end