File: mix-in

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-- 690 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='m'>
<name>Mix-in</name>
<reference>function</reference>
<reference>inheritance</reference>
<reference>ruby</reference>
<reference>matz</reference>
<content>
    To make a new taste mixing various one with the ice cream.
    Changed into mix the module with the class,
    and add the ((function|Function)).
    See also "((Inheritance))."

    Multiple ((inheritance|Inheritance)) is not adopted in ((Ruby)).
    Instead, the inheritance for the is-a relation,
    and Mix-in for sharing the ((function|Function)) is prepared.
    The purpose of this is the belief of ((matz))
    that the relations should be in chaos when multiple inheritance is abused.
</content>
</entry>