File: local_variable

package info (click to toggle)
libdb2-ruby 0.5.4-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,352 kB
  • ctags: 2,743
  • sloc: ansic: 11,156; ruby: 6,199; cpp: 6,064; makefile: 86; sh: 31
file content (24 lines) | stat: -rw-r--r-- 757 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<entry index='l'>
<name>Local Variable</name>
<reference>block</reference>
<reference>ruby</reference>
<reference>variable</reference>
<reference>method</reference>
<content>
    ((Variable)) which can be referred only within a certain range.
    The range is called 'Scope'. The scope of ((Ruby)) is among:

     * The entire program
     * Class and module definition
     * ((Method)) definition
     * ((Block))

    and only ((block|Block))
    can access the local variable in the outside scope.
    An effective range of the local variable is
    from the place where the first substitution in scope appeared
    to an end of the scope.
    The effective range is fixed statically, and is unrelated
    whether actually executed.
</content>
</entry>