Phrogz wrote:
> class Foo
>   puts "Inside Foo on line 4"
>   def bar
>     puts "Running #bar method (line 6)"
>   end
>   puts "All done with #{self} (line 8)"
> end

Even more enlightening, add two lines:

class Foo
  puts "Inside Foo on line 4"
  p self.instance_methods(false)
  def bar
    puts "Running #bar method (line 7)"
  end
  p self.instance_methods(false)
  puts "All done with #{self} (line 10)"
end