Sha256: 9d008f47b89b45d9627ed4550105b59ea6997abb0babc211429021507d20755d

Contents?: true

Size: 83 Bytes

Versions: 27

Compression:

Stored size: 83 Bytes

Contents

class String
  def nonnegative_float?
    !!match(/\A\+?\d+(?:\.\d+)?\Z/)
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
roroacms-0.0.7.4 lib/ext/string.rb
roroacms-0.0.7.3 lib/ext/string.rb
roroacms-0.0.7.2 lib/ext/string.rb
roroacms-0.0.7.1 lib/ext/string.rb
roroacms-0.0.7 lib/ext/string.rb
roroacms-0.0.2 lib/ext/string.rb
roroacms-0.0.1 lib/ext/string.rb