adspace
Answer Posted / Nilesh Rai
"In Ruby, and therefore in Rails, yield is a keyword that allows you to pass control to a block of code. When called within a method definition, yield causes the method to execute any block of code provided as an argument, passing it any arguments specified after the yield statement. It's commonly used with iterators like each, map, and reduce."n
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers