SHOW:
|
|
- or go back to the newest paste.
| 1 | - | module Trig |
| 1 | + | module A |
| 2 | - | PI = 3.141592654 |
| 2 | + | def a1 |
| 3 | - | |
| 3 | + | end |
| 4 | - | def Trig.sin(x) |
| 4 | + | def a2 |
| 5 | - | # .. |
| 5 | + | end |
| 6 | - | end |
| 6 | + | end |
| 7 | - | |
| 7 | + | |
| 8 | - | def Trig.cos(x) |
| 8 | + | module B |
| 9 | - | # .. |
| 9 | + | def b1 |
| 10 | - | end |
| 10 | + | end |
| 11 | def b2 | |
| 12 | end | |
| 13 | end | |
| 14 | ||
| 15 | class Sample | |
| 16 | include A | |
| 17 | include B | |
| 18 | def s1 | |
| 19 | end | |
| 20 | end |