Class: Rational
- Inherits:
-
Object
- Object
- Rational
- Defined in:
- lib/revert_float_to_s.rb,
lib/redefine_float_to_s_for_metapost.rb
Overview
metapost cannot handle the way ruby prints Rational. This redefines the Rational#to_s so that it is compatible with metapost.
Instance Method Summary collapse
Instance Method Details
#orig_to_s ⇒ Object
16 17 18 |
# File 'lib/redefine_float_to_s_for_metapost.rb', line 16 def to_s orig_to_s end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/revert_float_to_s.rb', line 10 def to_s orig_to_s end |