Class: Float

Inherits:
Object
  • Object
show all
Defined in:
lib/flv/core_extensions.rb

Instance Method Summary collapse

Instance Method Details

#to_sObject



58
59
60
# File 'lib/flv/core_extensions.rb', line 58

def to_s
   to_f % 1 == 0 ? to_i.to_s : to_str
end

#to_strObject



57
# File 'lib/flv/core_extensions.rb', line 57

alias :to_str :to_s