class String

Public Instance Methods

+(p) click to toggle source
# File lib/rubyhelper/string_numeric.rb, line 178
def +(p)
  return self + p.to_s if p.is_a? Fixnum
  return self.old_add(p)
end
Also aliased as: old_add
old_add(p)

Add the possibility to add a String with a Fixnum It will change the fixnum into a string If the argument is not a Fixnum, it will use the normal + operation

Alias for: +