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/kilza.rb, line 17 def number? true if Float(self) rescue false end