Sha256: fb4a2ded38cd002dd16c8b85b74f7832be255e9f372838572122ad37cfb700b4

Contents?: true

Size: 187 Bytes

Versions: 11

Compression:

Stored size: 187 Bytes

Contents

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

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

  alias_method :old_to_i, :to_i

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
t-2.9.0 lib/t/core_ext/string.rb
t-2.8.0 lib/t/core_ext/string.rb
t-2.7.0 lib/t/core_ext/string.rb
t-2.6.0 lib/t/core_ext/string.rb
t-2.5.0 lib/t/core_ext/string.rb
t-2.4.0 lib/t/core_ext/string.rb
t-2.3.0 lib/t/core_ext/string.rb
t-2.2.1 lib/t/core_ext/string.rb
t-2.2.0 lib/t/core_ext/string.rb
t-2.1.0 lib/t/core_ext/string.rb
t-2.0.2 lib/t/core_ext/string.rb