class String

Ruby class

Public Instance Methods

number?() click to toggle source

Test if the string can be a number

@param str [String] string to be tested

@return [Boolean] true in case of success

# File lib/jaspion/kilza.rb, line 24
def number?
  true if Float(self) rescue false
end