"Mark Hahn" <mchahn / facelink.com> writes:

> I've never processed symbols before.  If I have an object and a symbol of an
> instance variable, do I have to use eval to access the value, or is there a
> faster way?

Object#send

> def printSide obj, side
> 	puts eval("obj."+side.id2name)
> end
> printSide(node,:left)

Try:

    def printSide(obj, side)
        puts obs.send(side)
    end


-- 
matt