Tripe equals ===

What are === used for in Ruby? Do they work like .include?

Thanks.

Abder-Rahman A. wrote:

What are === used for in Ruby? Do they work like .include?

There’s a very good book here which will answer simple questions like
that:
http://www.ruby-doc.org/docs/ProgrammingRuby/

In the index in the bottom left corner you can navigate to “===
(Object)”, although that doesn’t really tell you much.

For a much better description, navigate to “Case Expressions
(expressions)” in that same window.

Brian C. wrote:

Abder-Rahman A. wrote:

What are === used for in Ruby? Do they work like .include?

There’s a very good book here which will answer simple questions like
that:
http://www.ruby-doc.org/docs/ProgrammingRuby/

In the index in the bottom left corner you can navigate to “===
(Object)”, although that doesn’t really tell you much.

For a much better description, navigate to “Case Expressions
(expressions)” in that same window.

Thanks.