/ Published in: Ruby
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
#!/usr/bin/ruby
class MyFixnum
def initialize( i )
@i = i
end
def pp
@i += 1
end
end
a = MyFixnum.new( 7 )
puts a.pp
Comments
 Subscribe to comments
                    Subscribe to comments
                
                