Class: Float

Inherits:
Object
  • Object
show all
Defined in:
lib/revert_float_to_s.rb,
lib/redefine_float_to_s_for_metapost.rb

Overview

metapost cannot handle expoential notation for float strings. This redefines the Float#to_s so that it is compatible with metapost.

Instance Method Summary collapse

Instance Method Details

#orig_to_sObject



6
7
8
# File 'lib/redefine_float_to_s_for_metapost.rb', line 6

def to_s
  orig_to_s
end

#to_sObject



3
4
5
# File 'lib/revert_float_to_s.rb', line 3

def to_s
  orig_to_s
end