fork download
  1. module Validations
  2. def method
  3. puts 'before method called'
  4. super
  5. puts 'after method called'
  6. end
  7.  
  8. def method2
  9. @a = 3
  10. super
  11. end
  12. end
  13.  
  14. class CCCC
  15. prepend Validations
  16.  
  17. def method
  18. puts 'super password'
  19. end
  20.  
  21. def method2
  22. puts @a
  23. end
  24. end
  25.  
  26. CCCC.new.method
  27. CCCC.new.method2
Success #stdin #stdout 0.02s 9664KB
stdin
Standard input is empty
stdout
before method called
super password
after method called
3