How do the following methods differ: @my_string.strip and @my_string.strip! ?
Answer / Ramniwas
"@my_string.strip removes leading and trailing whitespaces from a string, but it does not change the original string. On the other hand, @my_string.strip! modifies the original string by removing the leading and trailing whitespaces and returns nil."
| Is This Answer Correct ? | 0 Yes | 0 No |
Mention what is the difference between a gem and a plugin in ruby?
Explain me what the difference is between false and nil in ruby?
What is the difference between extend and include?
Do you know about dig, float and max?
Tell me how can we define ruby regular expressions?
In how many ways items can be added in an array in Ruby?
Explain about normal method class?
Explain retry statement in ruby.
Explain redo statement in Ruby?
What are class libraries in Ruby?
difference between activesupport's “hashwithindifferentaccess” and ruby's “hash”?
Is ruby a strongly typed or a weakly typed language?