class String
Public Instance Methods
nonnegative_float?()
click to toggle source
# File lib/ext/string.rb, line 2 def nonnegative_float? !!match(/\A\+?\d+(?:\.\d+)?\Z/) end
# File lib/ext/string.rb, line 2 def nonnegative_float? !!match(/\A\+?\d+(?:\.\d+)?\Z/) end