Changes

Jump to: navigation, search

Ruby Variable Scope

No change in size, 18:07, 1 February 2016
m
Text replacement - "<google>ADSDAQBOX_FLOW</google>" to "<htmlet>adsdaqbox_flow</htmlet>"
== What is Variable Scope? ==
<googlehtmlet>ADSDAQBOX_FLOWadsdaqbox_flow</googlehtmlet>
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.

Navigation menu