My RoR efforts have culminated in JiggyMe, check it out!
An example of nested modules,
“moduletest.rb”
To get to report method in module J, module N has to be included first
If module N is not included first, you will get an error like this
My RoR efforts have culminated in JiggyMe, check it out!
An example of nested modules,
“moduletest.rb”
To get to report method in module J, module N has to be included first
If module N is not included first, you will get an error like this
RSS feed for comments on this post. TrackBack URI
Theme: Rubric. Blog at WordPress.com.
hmm, tried the following snippet on Try Ruby (http://tryruby.hobix.com).
class C
include N::J
end
a = C.new
a.report #prints “report” of j
I typed in the contents of
moduletest.rbfirst.Comment by el raichu — March 9, 2007 @ 3:39 am |
Yep, that works too, a more succinct alternate way of doing the same thing.
Comment by bngu — March 9, 2007 @ 9:31 am |