Classe numérique

Ruby code posted by kikan
created at 05 Jan 15:36

Edit | Back
1
2
3
4
5
6
7
8
class Numeric
  def plus(x)
    self.+(x)
  end
end

y = 5.plus 6
# y vaut maintenant 11
103 Bytes in 2 ms with coderay