Ron Barry/foodini.org
         Latest Entry
prev:20080903           whole blog            in context             next:20080919
%20080905
Hear Me RoR
It is not my intent to turn this into a Ruby on Rails blog (though by including
the phrase "Ruby on Rails blog" I have almost assured a major spike in Google
Goggles here,) but it has come to pass that I now walk through the valley of the
shadow of this particular beast on a daily basis, so it is at the fore of my 
brain.  (I use the word "fore" here in the golf sense: I consider Ruby on Rails
to be more of a divot in my psyche than an actual skillset.  =] )  If that last
sentence made any sense to you at all, you're one up on me.

Anyway, one of the odd things that I have found about reflective languages is
the incredible utility available from language constructs that tell you what the
hell your environment looks like.  A good debugger will often provide this, but
I use Aptana, so I'm screwed.  The point is, if you've been Rail(s)roaded, you
will like having access to: 

    self.class.class_variables
    self.instance_variables
    self.methods

I usually use these in conjunction with some prettying-up:

    self.class.class_variables.join("<br />")

etc...

    -rbarry
prev:20080903           whole blog            in context             next:20080919