File: initialize

package info (click to toggle)
ruby-bdb 0.6.5-7
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,028 kB
  • sloc: ansic: 13,984; cpp: 8,735; ruby: 7,869; sh: 47; makefile: 9
file content (19 lines) | stat: -rw-r--r-- 721 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
<entry index='i'>
<name>Initialize</name>
<reference>block</reference>
<reference>method</reference>
<reference>object</reference>
<content>
    Put the ((object|Object)) (or "something")
    into "ready-to-use-it" state.
    The '((|initialize|))' ((method|Method)) should be redefined
    to initialize the ((instance|Instance)).
    The default definition of the method '((|new|))' of the class is
    to execute Initialize to the newly generated instance.
    The argument to ((|new|)) is tossed to initialize as it is.
    Moreover, when ((|new|)) is called with the ((block|Block)),
    the block is given to initialize as it is.

    This surely means Class#new is not to have to be redefined.
</content>
</entry>