Class: Rational
Instance Method Summary collapse
Instance Method Details
#colorless_pretty_print ⇒ Object
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 |