fork download
  1. module Foo
  2. def nums
  3. [1, 2, 3]
  4. end
  5. end
  6.  
  7. class Bar
  8. include Foo
  9.  
  10. def initialize
  11. p nums
  12. end
  13. end
  14.  
  15. bar = Bar.new
Success #stdin #stdout 0s 4716KB
stdin
Standard input is empty
stdout
[1, 2, 3]