4qjwN0tVxkX68f2leDnvlo changeset
Changeset | 383835326235 (b) |
---|---|
Parent | 633539353234 (a) |
a | b | ||
---|---|---|---|
0 | 0 | class ExampleClass | |
... | |||
1 | + | p self #=> ExampleClass | |
1 | + | ||
... | |||
1 | 1 | @variable = "foo" | |
2 | 2 | @@variable = "bar" | |
3 | 3 | ||
4 | 4 | def initialize | |
... | |||
5 | + | p self #=> #<ExampleClass:…> | |
... | |||
5 | 5 | @variable = "baz" | |
6 | 6 | end | |
7 | 7 | ||
8 | 8 | def self.test | |
... | |||
9 | + | p self #=> ExampleClass | |
... | |||
9 | 9 | puts @variable | |
10 | 10 | end | |
11 | 11 | ||
12 | 12 | def test | |
... | |||
13 | + | p self #=> #<ExampleClass:…> | |
... | |||
13 | 13 | self.class.test | |
14 | 14 | puts @@variable | |
15 | 15 | puts @variable | |
... |
|
|