Sha256: d89e83f280c4a88eecc7c8c2a9b34879f2ad977e51fc146fecf877a5ee280faf

Contents?: true

Size: 197 Bytes

Versions: 3

Compression:

Stored size: 197 Bytes

Contents

class String

  def prepend_at
    "@#{self}"
  end

  def strip_ats
    self.tr('@', '')
  end

  alias_method :old_to_i, :to_i

  def to_i(base=10)
    self.tr(',', '').old_to_i(base)
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
t-0.9.9 lib/t/core_ext/string.rb
t-0.9.8 lib/t/core_ext/string.rb
t-0.9.7 lib/t/core_ext/string.rb