Skip to content

Instantly share code, notes, and snippets.

@ryanlecompte
Created October 17, 2011 14:23
Show Gist options
  • Save ryanlecompte/1292698 to your computer and use it in GitHub Desktop.
Save ryanlecompte/1292698 to your computer and use it in GitHub Desktop.
ruby-1.9.2-p290 :001 > class A
ruby-1.9.2-p290 :002?> end
=> nil
ruby-1.9.2-p290 :003 > A.ancestors
=> [A, Object, PP::ObjectMixin, Kernel, BasicObject]
ruby-1.9.2-p290 :004 > module M
ruby-1.9.2-p290 :005?> end
=> nil
ruby-1.9.2-p290 :006 > module Kernel
ruby-1.9.2-p290 :007?> include M
ruby-1.9.2-p290 :008?> end
=> Kernel
ruby-1.9.2-p290 :009 > A.ancestors
=> [A, Object, PP::ObjectMixin, Kernel, BasicObject]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment