Revision 633539353234 () - Diff

Link to this snippet: https://friendpaste.com/4qjwN0tVxkX68f2leDnvlo
Embed:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class ExampleClass
@variable = "foo"
@@variable = "bar"
def initialize
@variable = "baz"
end
def self.test
puts @variable
end
def test
self.class.test
puts @@variable
puts @variable
end
end