Slide 29
Slide 29 text
class BasicObject
def self.method_added(method_name)
if method_name != :method_missing
remove_method method_name
end
end
end
class BasicObject
def method_missing(method_name, *args)
p "Momonga say #{method_name}"
end
end
class Sample
def sample
p 42
end
end
Sample.new.sample
"Momonga say sample"
ʊਓਓਓਓਓʊ
ʼɹ͓ΘΓɹʻ
ʉY^Y^Y^Yʉ