class Fixnum

Public Instance Methods

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

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

Alias for: +