Ruby Constants - Note to Self ::
Well after trying to access a ruby class constant for the zillionth time with Class.CONSTNAME.
( Which btw. very nicely gives the error “Undefined Method Class.CONSTNAME”…)
I’ve decided to write this note on my blog…
Remember:
print Class::InnerClass::CONSTANT
print Class::InnerClass.method_name
print Class::InnerClass.method_name
* kick * to my own butt..
Comments(0)