module DeepCover::ExpressionDebugger::ColorAST

Public Instance Methods

fancy_type() click to toggle source
Calls superclass method
# 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