L
Lowell Kirsh
I'm wondering about the difference between writing something like
@x = ...
and
self.x = ...
from within a class. Are they the same thing? To be more concrete, I
have given a fuller example below:
class Foo
def bar
self.x = 1
end
end
class Foo
def bar
@x = 1
end
end
Lowell
@x = ...
and
self.x = ...
from within a class. Are they the same thing? To be more concrete, I
have given a fuller example below:
class Foo
def bar
self.x = 1
end
end
class Foo
def bar
@x = 1
end
end
Lowell