In how many ways you can compare Ruby string?
Answer / Pravin Kumar Pndey
"There are several ways to compare strings in Ruby. Some common methods include == (equal to), === (match to), <, <=, >, and >=."
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain class libraries in ruby.
Tell me what is the role of sub-directory app/controllers and app/helpers?
Can method names be capitalized?
What must you do first before you can invoke an unboundmethod object?
Explain ruby class.
What is the naming conventions for methods that return a boolean result?
How to access Ruby array elements? How many methods are used to access Ruby elements?
Tell me can you call a private method outside a ruby class using its object?
What function converts all html special symbols to html entities in ruby?
What is the difference between a class and a module?
Tell me what is the difference between active support's “hashwithindifferent” and ruby's “hash” ?
As you know ruby provides four types of variables. List them and provide a brief explanation for each?