class Float
A little overload for float that turns whole number floats (like 5.0) into integers.
Public Instance Methods
whole_to_i()
click to toggle source
# File lib/svg_plot_gen.rb, line 10 def whole_to_i to_i == self ? to_i : self end