class Pry::Command::ToggleColor

Public Instance Methods

color_toggle() click to toggle source
# File lib/pry/commands/toggle_color.rb, line 18
def color_toggle
  !_pry_.color
end
process() click to toggle source
# File lib/pry/commands/toggle_color.rb, line 13
def process
  _pry_.color = color_toggle
  output.puts "Syntax highlighting #{_pry_.color ? "on" : "off"}"
end