From: Intransition on
Anyone have a term, for an attribute name, meaning "Class or Module".
I probably would just use #class but that's a keyword so that's out.
So far I've tried #scope and #namespace, but neither seem quite right.
Any suggestions?

From: Jacob Mitchell on
[Note: parts of this message were removed to make it a legal post.]

People sometimes use "klass". As for module, I haven't ever found a need
for that, but perhaps "component" would be good.

From: Chris Mear on
On 2010-08-07 14:51:16 +0100, Intransition said:

> Anyone have a term, for an attribute name, meaning "Class or Module".
> I probably would just use #class but that's a keyword so that's out.
> So far I've tried #scope and #namespace, but neither seem quite right.
> Any suggestions?

I've seen the deliberate mispelling #klass used before.

Chris

From: Jesús Gabriel y Galán on
On Sat, Aug 7, 2010 at 3:51 PM, Intransition <transfire(a)gmail.com> wrote:
> Anyone have a term, for an attribute name, meaning "Class or Module".
> I probably would just use #class but that's a keyword so that's out.
> So far I've tried #scope and #namespace, but neither seem quite right.
> Any suggestions?

class_or_module ?

Jesus.

From: Caleb Clausen on
On 8/7/10, Intransition <transfire(a)gmail.com> wrote:
> Anyone have a term, for an attribute name, meaning "Class or Module".
> I probably would just use #class but that's a keyword so that's out.
> So far I've tried #scope and #namespace, but neither seem quite right.
> Any suggestions?

#class is a perfectly fine name for a method. So is #module. Ruby is,
as you nknow very forgiving about letting you use keywords for method
names. Unless this method is going to be called without a receiver
(inside the class where you define it) a lot, there will be no
awkwardness about calling it.