class String

Public Instance Methods

numeric?() click to toggle source

Returns true if the given String represents a numeric value @return [Bool] true if the string represents a numeric value, false if it doesn't.

# File lib/oxcelix.rb, line 21
def numeric?
  Float(self) != nil rescue false
end