So…you want to add a module to your ruby class, huh?
Touche! It appears that if you want to add ‘just functions’ here’s how
module FunctionsAndConstants CONSTANT='3' def a end end class B include JustFunctionsend end b_instance = B.new() b_instance.a() B::CONSTANT # '3'
however if you want to add class functions use extend but define them as normal functions
module JustClassStuff def class_method end end class C extend JustClassStuff end C.class_method
however.
http://www.rubycentral.com/pickaxe/classes.html