# Rubyのclassってdupできたんだ…。
class Foo
def hoge
"HOGE"
end
end
foo_dup = Foo.dup
foo_dup.instance_eval{ define_method(:piyo){ "PIYO" } }
p foo_dup.new.hoge
p Foo.new.hoge
p foo_dup.new.piyo # これはOK。あとでdefine_methodしてる
p Foo.new.piyo # これは例外。もとのFooにはpiyoが定義されていない
IyBSdWJ544GuY2xhc3PjgaPjgaZkdXDjgafjgY3jgZ/jgpPjgaDigKbjgIIKCmNsYXNzIEZvbwogIGRlZiBob2dlCiAgICAiSE9HRSIKICBlbmQKZW5kCgpmb29fZHVwID0gRm9vLmR1cApmb29fZHVwLmluc3RhbmNlX2V2YWx7IGRlZmluZV9tZXRob2QoOnBpeW8peyAiUElZTyIgfSB9CgpwIGZvb19kdXAubmV3LmhvZ2UKcCBGb28ubmV3LmhvZ2UKcCBmb29fZHVwLm5ldy5waXlvICMg44GT44KM44GvT0vjgILjgYLjgajjgadkZWZpbmVfbWV0aG9k44GX44Gm44KLCnAgRm9vLm5ldy5waXlvICAgICAjIOOBk+OCjOOBr+S+i+WkluOAguOCguOBqOOBrkZvb+OBq+OBr3BpeW/jgYzlrprnvqnjgZXjgozjgabjgYTjgarjgYQK