Sha256: 65e3ef3eda610f8b0f04ae1662c35e97eca6cee1a34272696f9a3441f39356ea

Contents?: true

Size: 213 Bytes

Versions: 34

Compression:

Stored size: 213 Bytes

Contents

class String
  #see if string is numeric
  def is_number?
    true if Float(self) rescue false
  end

  def trim
    trimmed = self.strip

    if trimmed == nil
      self
    else
      trimmed
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
yawast-0.7.0.beta1 lib/string_ext.rb
yawast-0.6.0 lib/string_ext.rb
yawast-0.6.0.beta6 lib/string_ext.rb
yawast-0.6.0.beta5 lib/string_ext.rb
yawast-0.6.0.beta4 lib/string_ext.rb
yawast-0.6.0.beta3 lib/string_ext.rb
yawast-0.6.0.beta2 lib/string_ext.rb
yawast-0.6.0.beta1 lib/string_ext.rb
yawast-0.5.2 lib/string_ext.rb
yawast-0.5.1 lib/string_ext.rb
yawast-0.5.1.beta1 lib/string_ext.rb
yawast-0.5.0 lib/string_ext.rb
yawast-0.5.0.beta8 lib/string_ext.rb
yawast-0.5.0.beta7 lib/string_ext.rb
yawast-0.5.0.beta6 lib/string_ext.rb
yawast-0.5.0.beta5 lib/string_ext.rb
yawast-0.5.0.beta4 lib/string_ext.rb
yawast-0.5.0.beta3 lib/string_ext.rb
yawast-0.5.0.beta2 lib/string_ext.rb
yawast-0.5.0.beta1 lib/string_ext.rb