module Foo
def a; :a; end
end
class Bar; include Foo; end
p Bar.new.a
class Baz; extend Foo; end
Baz.extend(Foo)
p Baz.a
b = "string"
b.extend(Foo)
p b.a
extend Foo
p a
bW9kdWxlIEZvbwogIGRlZiBhOyA6YTsgZW5kCmVuZAoKY2xhc3MgQmFyOyBpbmNsdWRlIEZvbzsgZW5kCnAgQmFyLm5ldy5hCgpjbGFzcyBCYXo7IGV4dGVuZCBGb287IGVuZApCYXouZXh0ZW5kKEZvbykKcCBCYXouYQoKYiA9ICJzdHJpbmciCmIuZXh0ZW5kKEZvbykKcCBiLmEKCmV4dGVuZCBGb28KcCBh