class Eclair::LessViewer::ColorPP

Public Class Methods

pp(obj, out = $>, width = 79) click to toggle source
# File lib/eclair/less_viewer.rb, line 6
def self.pp(obj, out = $>, width = 79)
  q = ColorPP.new(out, width)
  q.guard_inspect_key { q.pp obj }
  q.flush
  out << "\n"
end

Public Instance Methods

text(str, width = str.length) click to toggle source
Calls superclass method
# File lib/eclair/less_viewer.rb, line 13
def text(str, width = str.length)
  super(CodeRay.scan(str, :ruby).term, width)
end