Class: Rational

Inherits:
Object show all
Defined in:
lib/colorful_inspect.rb

Instance Method Summary collapse

Instance Method Details

#colorless_pretty_printObject



147
# File 'lib/colorful_inspect.rb', line 147

alias colorless_pretty_print pretty_print

#pretty_print(q) ⇒ Object



149
150
151
# File 'lib/colorful_inspect.rb', line 149

def pretty_print(q)
  q.text ColorfulInspect.colorize(q, :rational, "#{inspect}#{to_f}")
end