blob: c261b53068080e486d49f973dc610b145f3e5ef3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
class foo
def foo
eval("
def baz
print(\"bar\n\")
end")
end
end
class bar:foo
def bar
baz()
end
end
f = foo.new
b = bar.new
b.foo
b.bar
f.baz
|