Sha256: b25c8ca4c0276b159d9ad53b3f5e0f92f2e8592eb33fcd8df7aa67dd76d09306

Contents?: true

Size: 177 Bytes

Versions: 3

Compression:

Stored size: 177 Bytes

Contents

class String
  def prepend_at
    "@#{self}"
  end

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

  alias old_to_i to_i

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
t-3.1.0 lib/t/core_ext/string.rb
t-3.0.0 lib/t/core_ext/string.rb
t-2.10.0 lib/t/core_ext/string.rb