I need to know whether it is possible to include included ruby modules in accessing class variables. Let's say:
require 'bar' class Foo @i_am_important Bar.do_stuff end Module Bar def Bar.do_stuff @i_am_important.stuff... end end
Is there a way to do the work above?
edit: improved example, edit2: fixed problem
I just changed my approach: Bar became its own class and passed in "i_am_important", which was passed during initialization. It may not be the best solution, but it works at last. Thanks for the help.
SDD64 source share