Understanding Variable Scope & Binding Objects in Ruby
Scope is an important concept to understand for all Ruby developers. Why? Because it’s the source of many error messages & confusion. What is scope? Scope refers to what variables are available at any given point in time. Different kind of variables have different scopes. A scope can be very narrow (local variables) or very … Read more