Explain for loop in Ruby?
Answer / Jay Prakash
The for loop in Ruby iterates over a collection (such as an array or range). The basic structure is as follows:n```rubynfor variable in collectionn # code block executed for each iterationnend``
| Is This Answer Correct ? | 0 Yes | 0 No |
Tell me what is the difference between active support's “hashwithindifferent” and ruby's “hash” ?
how many ways you can create a concatenating string?
What's the difference in scope for these two variables: @name and @@name?
How to access Ruby array elements? How many methods are used to access Ruby elements?
What is Ruby programming language?
Explain about Class variable and global variable?
What is mvc? And how it works?
Tell us in ruby, it explains about the defined operator?
Tell us how would you implement hash in ruby internally?
What happens when a value is too big for fixnum?
Explain retry statement in ruby.
In how many ways you can compare Ruby string?