Sha256: be76f1681c1a82464d2982d9f74754244bb90e71e16fbdbcc8caa0688729a93d
Contents?: true
Size: 467 Bytes
Versions: 174
Compression:
Stored size: 467 Bytes
Contents
class Pry class Command::ToggleColor < Pry::ClassCommand match 'toggle-color' group 'Misc' description 'Toggle syntax highlighting.' banner <<-'BANNER' Usage: toggle-color Toggle syntax highlighting. BANNER def process _pry_.color = color_toggle output.puts "Syntax highlighting #{_pry_.color ? "on" : "off"}" end def color_toggle !_pry_.color end Pry::Commands.add_command(self) end end
Version data entries
174 entries across 167 versions & 40 rubygems