blob: 1d329ea06afd9e4bd9289eefdce193e066a9237e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# attribute access example
# output:
# 10
# #<Foo: @test=10>
class Foo
attr "test", TRUE
end
foo = Foo.new
foo.test = 10
print foo.test, "\n"
foo._inspect.print
print "\n"
|