Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/greater_less/string_extension.rb

Instance Method Summary collapse

Instance Method Details

#to_fObject



4
5
6
7
8
9
# File 'lib/greater_less/string_extension.rb', line 4

def to_f
  if self =~ GreaterLess::GREATER_LESS
    return GreaterLess.new(self)
  end
  self.to_f_without_greater_less
end

#to_f_without_greater_lessObject



2
# File 'lib/greater_less/string_extension.rb', line 2

alias :to_f_without_greater_less :to_f