Return to Snippet

Revision: 1290
at September 27, 2006 10:25 by gdonald


Updated Code
#!/usr/bin/ruby

class MyFixnum

  def initialize( i )
    @i = i
  end

  def pp
    @i += 1
  end
  
end

a = MyFixnum.new( 7 )
puts a.pp

Revision: 1289
at September 27, 2006 10:25 by gdonald


Initial Code
#!/usr/bin/ruby

class MyFixnum

  def initialize( i )
    @i = i
  end

  def pp
    @i += 1
  end
  
end

a = MyFixnum.new( 7 )
puts a.pp

Initial URL

                                

Initial Description

                                

Initial Title
ruby add missing ++ operator

Initial Tags

                                

Initial Language
Ruby