[ create a new paste ] login | about

Link: http://codepad.org/f7BfdHlZ    [ raw code | output | fork ]

Ruby, pasted on Sep 30:
1
2
3
4
5
6
7
8
9
class A 
    attr_accessor :a
    def initialize(a) 
        @a = a
    end
end

aa = A.new("hello, world!")
puts aa.a


Output:
1
hello, world!


Create a new paste based on this one


Comments: