Skip to content

Instantly share code, notes, and snippets.

@johnlane
johnlane / tom.rb
Last active August 29, 2015 13:56
The One Module (TOM) is an example Ruby module that demonstrates setting of module, class, class instance and instance variables for classes that include or extend the module.
# TOM : The One Module
#
# An example Ruby module that demonstrates setting of module, class, class instance
# and instance variables for classes that include or extend the module
#
# (c) John Lane 20140218
#
module Tom
extend self # makes module methods available as class and instance methods.