4. Terms and definitions

From Ruby Standard Wiki

(Redirected from Terms and definitions)
Jump to: navigation, search
4: Terms and definitions

For the purposes of this document, the following terms and definitions apply. Other terms are defined where they appear in bold slant face or on the left side of a syntax rule.

Contents

4.1 block

4.1: block

sequence of statements which is passed to a method invocation

4.2 class

4.2: class

object which defines the behavior of a set of other objects called its instances

NOTE The behavior is a set of methods which can be invoked on an instance.

4.3 class variable

4.3: class variable

variable whose value is shared by all the instances of a class

4.4 Constant variable

4.4: constant variable

variable which is defined in a class or a module and is accessible outside the class or module

NOTE The value of a constant is regularly expected to remain constant during the execution of a program, but Ruby does not force it. In some implementations, an assignment to a constant which already exists causes a warning, but this document does not specifity it.

4.5 eigenclass

4.5: eigenclass

special class which defines a behavior for only a single object

4.6 exception

4.6: exception

object which represents an unexpected event

4.7 global variable

4.7: global variable

variable which is accessible everywhere in a Ruby program

4.8 implementation defined

4.8: implementation defined

possibly differing between implementations, but defined for every implementation

4.9 implementation dependent

4.9: implementation dependant

possibly differing between implementations, and not necessarily defined for any particular implementation

4.10 instance method

4.10: instance method

method which can be invoked on all the instances of a class

4.11 instance variable

4.11: instance variable

variable which belongs to a single object

4.12 local variable

4.12: local variable

variable which is accessible only in a certain scope introduced by a program construct such as a method definition, a block, a class definition, a module definition, an eigenclass definition, or the toplevel of a program

4.13 method

4.13: method

procedure which, when invoked on an object, performs a set of computations on the object

4.14 method visibility

4.14: method visibility

attribute of a method which determines the conditions on which a method invocation is allowed

4.15 module

4.15: module

object which provides features to be included into a class or another module

4.16 object

4.16: object

computational entity which has a state and a behavior

4.17 singleton method

4.17: singleton method

instance method of the eigenclass of an object

4.18 variable

4.18: variable

computational entity which stores a reference to an object

Navigation

Previous: 3. Conformance Next: 5. Notational conventions

Personal tools