What are === used for in Ruby? Do they work like .include?
Thanks.
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs