Hi guys,
first sorry my poor english. I’m a spanish speaker from argentina
seing a video-conf from Dave T. on metaprogramming I rose these
questions:
who is the reciever? where are stored the method definitions?
class Dave
class << self
def hi
puts 123
end
def self.hi
puts 456
end
end
def self.call_hi_low
hi
end
def self.call_hi_up
class << self
hi
end
end
end
Dave.call_hi_low #=>123
Dave.call_hi_up #=>456