What's the difference in calling method vs self.method?
- From: "Jim" <narf968@xxxxxxxxx>
- Date: 31 Dec 2005 10:42:40 -0800
Here's some example code. In method_b, what is the difference in
calling method_a and self.method_a?
class HoHo
def method_a
puts "Hello, HoHo"
end
def method_b
method_a
self.method_a
end
end
hoho = HoHo.new
hoho.method_b
.
- Follow-Ups:
- Re: What's the difference in calling method vs self.method?
- From: Marcin Mielżyński
- Re: What's the difference in calling method vs self.method?
- From: Jim
- Re: What's the difference in calling method vs self.method?
- From: Joseph Divelbiss
- Re: What's the difference in calling method vs self.method?
- From: Tool69
- Re: What's the difference in calling method vs self.method?
- Prev by Date: PAbbrev with Ruby Electric
- Next by Date: Re: Where is my TestResult?
- Previous by thread: PAbbrev with Ruby Electric
- Next by thread: Re: What's the difference in calling method vs self.method?
- Index(es):
Relevant Pages
|