4qjwN0tVxkX68f2leDnvlo changeset
Changeset | 633539353234 (b) |
---|---|
Parent | None (a) |
a | b | ||
---|---|---|---|
0 | + | class ExampleClass | |
0 | + | @variable = "foo" | |
0 | + | @@variable = "bar" | |
0 | + | ||
0 | + | def initialize | |
0 | + | @variable = "baz" | |
0 | + | end | |
0 | + | ||
0 | + | def self.test | |
0 | + | puts @variable | |
0 | + | end | |
0 | + | ||
0 | + | def test | |
0 | + | self.class.test | |
0 | + | puts @@variable | |
0 | + | puts @variable | |
0 | + | end | |
0 | + | end | |
... |
|
|