Sha256: d6cbdb7410aa22edbb50bfb7e2ba43c0413461bbb2c816fd81f627b1e07f1f3c

Contents?: true

Size: 187 Bytes

Versions: 16

Compression:

Stored size: 187 Bytes

Contents

class String

  def prepend_at
    "@#{self}"
  end

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

  alias old_to_i to_i

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

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
t-2.0.1 lib/t/core_ext/string.rb
t-2.0.0 lib/t/core_ext/string.rb
t-1.7.2 lib/t/core_ext/string.rb
t-1.7.1 lib/t/core_ext/string.rb
t-1.7.0 lib/t/core_ext/string.rb
t-1.6.0 lib/t/core_ext/string.rb
t-1.5.1 lib/t/core_ext/string.rb
t-1.5.0 lib/t/core_ext/string.rb
t-1.4.0 lib/t/core_ext/string.rb
t-1.3.1 lib/t/core_ext/string.rb
t-1.3.0 lib/t/core_ext/string.rb
t-1.2.0 lib/t/core_ext/string.rb
t-1.1.1 lib/t/core_ext/string.rb
t-1.1.0 lib/t/core_ext/string.rb
t-1.0.1 lib/t/core_ext/string.rb
t-1.0.0 lib/t/core_ext/string.rb