module Validations
def method
puts 'before method called'
super
puts 'after method called'
end
def method2
@a = 3
super
end
end
class CCCC
prepend Validations
def method
puts 'super password'
end
def method2
puts @a
end
end
CCCC.new.method
CCCC.new.method2
bW9kdWxlIFZhbGlkYXRpb25zCiAgZGVmIG1ldGhvZAogICAgcHV0cyAnYmVmb3JlIG1ldGhvZCBjYWxsZWQnCiAgICBzdXBlcgogICAgcHV0cyAnYWZ0ZXIgbWV0aG9kIGNhbGxlZCcKICBlbmQKCiAgZGVmIG1ldGhvZDIKICAgIEBhID0gMwogICAgc3VwZXIKICBlbmQKZW5kCgpjbGFzcyBDQ0NDCiAgcHJlcGVuZCBWYWxpZGF0aW9ucwoKICBkZWYgbWV0aG9kCiAgICBwdXRzICdzdXBlciBwYXNzd29yZCcKICBlbmQKCiAgZGVmIG1ldGhvZDIKICAgIHB1dHMgQGEKICBlbmQKZW5kCgpDQ0NDLm5ldy5tZXRob2QKQ0NDQy5uZXcubWV0aG9kMg==