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/core_ext/ext.rb, line 4 def numeric? Float(self) != nil rescue false end