File: initialize

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 (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>