views:

223

answers:

4

My current question is what does the << operator do in Ruby? But my real question is how would I search Google to find the answer?

+6  A: 

Google for "ruby operators" (without the quotes), open the first link in a new window, use your browser to search for '<<' (without the quotes).

Joe Casadonte
Already thought of that, but thanks. I wanted something a bit more specific.
Yar
Months later, I think this is the best way.
Yar
+4  A: 

"shift left operator ruby"

Google will only find something if you search for words and numbers...

Chris
Interesting approach. Thanks.
Yar
Of course, this approach only works when you know that << means left shift ;)
Rowland Shaw
That's true Rowland. I tried searching on "double less-than signs ruby" without the quotes and the result was okay.
Yar
+1  A: 

Google Code Search lets you search public source code repositories, so perhaps you can find examples of "<<" in Ruby to help you figure out what's going on.

Bkkbrad
+1  A: 

Use the "ruby operators" search Joe Casadonte suggested to find the words you're after, then google using those words?

Andrew Grimm