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-1.0.0 lib/ext/string.rb
roroacms-0.0.8.6.7 lib/ext/string.rb
roroacms-0.0.8.6.6 lib/ext/string.rb
roroacms-0.0.8.6.5 lib/ext/string.rb
roroacms-0.0.8.6.4 lib/ext/string.rb
roroacms-0.0.8.6.3 lib/ext/string.rb
roroacms-0.0.8.6.2 lib/ext/string.rb
roroacms-0.0.8.6.1 lib/ext/string.rb
roroacms-0.0.8.6 lib/ext/string.rb
roroacms-0.0.8.5 lib/ext/string.rb
roroacms-0.0.8.4 lib/ext/string.rb
roroacms-0.0.8.3 lib/ext/string.rb
roroacms-0.0.8.2 lib/ext/string.rb
roroacms-0.0.8.1 lib/ext/string.rb
roroacms-0.0.8 lib/ext/string.rb
roroacms-0.0.7.10 lib/ext/string.rb
roroacms-0.0.7.8 lib/ext/string.rb
roroacms-0.0.7.7 lib/ext/string.rb
roroacms-0.0.7.6 lib/ext/string.rb
roroacms-0.0.7.5 lib/ext/string.rb