How will you comment in ruby.
Answer / Hitendra Kumar Singh
"To comment in Ruby, you can use the # symbol for single-line comments and =begin and =end for multi-line comments. For example:
# This is a single-line comment
=begin
This is a
multi-line
comment
=end
""
| Is This Answer Correct ? | 0 Yes | 0 No |
In how many ways items can be removed from array in Ruby?
Explain Ruby exceptions?
Mention what is the difference between a gem and a plugin in ruby?
what is the purpose of the rakefile available in the demo directory in ruby?
Tell me can you call a private method outside a ruby class using its object?
Mention what is the command to create a migration?
Please explain the role of thread pooling in relation to the thread lifecycle in ruby?
Explain ampersand parameter (&block) in Ruby?
What is yield statement in ruby.
What is the difference between throw/catch and raise/rescue?
Please explain what is mvc and why do we use it?
Explain how can we define ruby regular expressions?