A
scope refers to the methods
and object variables defined for a single class (not including the superclasses).
Only methods defined in a
particular scope can access the object variables within that scope. This means
that object variables in a subclass can have the same names as object variables
used by a superclass, because the variables are created at different scopes.
The
scope method of
the
Method class
returns the scope (a class object or
.nil).