Timothy Goddard wrote:
> The base level in Ruby runs in the context of an instance of Object.
> When you add base level methods you're actually adding those methods to
> the eigenclass of the main object.

That's not correct. The methods are being added to Object itself. Main
is just a proxy. The methods is has related to defining and looking up
methods just reroute to Object.

  def x; end
  p Object.private_instance_methods(false)
  => ['initialize', 'x']

To add to the toplevel pot:

  def x; end
  respond_to?(:x)
  => false

(I know, b/c it's private method, but still.)

T.