A keyword used in instance methods to refer to the object on which they are working.
Here is some code: class Person def initialize(age) @age = age end def age @age end def age_difference_with(…
ruby self instance-variablesI have a class, A, which is inherited by a bunch of other classes. Some of these have a few …
python selfI'm having a really hard time understanding the intersection of OO Perl and my $self = shift; The documentation on these …
perl attributes self shift mooseQuestion: when do I need to use self in my models in Rails? I have a set method in one …
ruby-on-rails ruby-on-rails-3 ruby-on-rails-3.1 selfI'm trying to write a class to randomly pick a number of songs from a dictionary. The whole point of …
python-2.7 class oop selfI have read something in some foreign code and I want to check my assumption: @synchronized(self) is used to …
objective-c synchronized self declared-propertyToward the end of a program I'm looking to load a specific variable from all the instances of a class …
python class dictionary self instancesI read here that "self Refers to the current window or form". Self does not seem to refer to the …
javascript dom keyword selfI have an Obj-C object with a bunch of methods inside of it. Sometimes a method needs to call another …
objective-c self