Skip to content

Instantly share code, notes, and snippets.

@bgipsy
bgipsy / gist:3413487
Created August 21, 2012 08:27
Aspects of Module included callback
# supporting the answer for http://stackoverflow.com/questions/11742890/merge-two-ruby-modules-but-not-include/12036994#12036994
module A
def a
puts "a"
end
end
module B
# note 'self.' part here, which makes method a module method