Changes

Ruby Variable Scope

31 bytes added, 15:00, 19 March 2009
What is Variable Scope?
== What is Variable Scope? ==
<google>ADSDAQBOX_FLOW</google>
Scope defines where in a program a variable is accessible. Ruby has four types of variable scope, ''local'', ''global'', ''instance'' and ''class''. In addition, Ruby has one constant type. Each variable type is declared by using a special character at the start of the variable name as outlined in the following table.