Answer Posted / Deepika Sengar
In Ruby, local variables have block scope. This means they are accessible within the same method or block they were defined unless explicitly declared as global (using $ before variable name).
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers