[Facets] Better name for Module#parent?

0 views
Skip to first unread message

Trans

unread,
Aug 26, 2010, 1:14:57 PM8/26/10
to facets-u...@rubyforge.org
Currently Facets has methods Module#parent and Module#parents. These
simply return the module/class name spaces of a module or class, e.g.

Test::Unit::TestCase.parent #=> Test::Unit

Test::Unit::TestCase.parents #=> [Test, Test::Unit]

I do not think that names of these methods really capture their
purpose, b/c "parent" in OOP generally means superclass.

I am included to use #namespace instad, except for two niggles -- Rake
used the #namespace method for something totally different, and
"namespace" suggests a string will be returned (at least it does to
me).

Are my concerns about #namespace unfounded? Any other ideas for better
a name?
_______________________________________________
facets-universal mailing list
facets-u...@rubyforge.org
http://rubyforge.org/mailman/listinfo/facets-universal

Reply all
Reply to author
Forward
0 new messages