I absolutely love Ruby, but...I've always found the subject of Ruby 
operators to be a small nightmare. First, it's hard to find a complete 
table - the best I've found says gleefully at its bottom "and there are 
even more". Wonderful. So many tools, so little time...

Then there's the matter of some symbols being operators, others being 
methods, and some (my impression only) both, and yet others being a 
number of things, depending upon context. When someone says that Ruby is 
harder than Python, I suppose this might be what they mean. makes sense 
to me.

So, just today I learn that this is possible:

irb(main):001:0> ?.
=> 46
irb(main):002:0> ?a
=> 97
irb(main):003:0> 97.chr
=> "a"
irb(main):004:0>

So...what is this "?" thing? I've looked in four references, and Googled 
until I'm dizzy, and find no answer. Operator? Method? (Stupid 
distinction???)

I know I'll certainly be using this, but it'd be nice to know what I'm 
doing.

All comments welcome.

t.

-- 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
<< tc / tomcloyd.com >> (email)
<< TomCloyd.com >> (website) 
<< sleightmind.wordpress.com >> (mental health weblog)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~