Skip to content

Instantly share code, notes, and snippets.

@matenia
Created March 4, 2015 04:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matenia/a8e8f075fadc453cf56c to your computer and use it in GitHub Desktop.
Save matenia/a8e8f075fadc453cf56c to your computer and use it in GitHub Desktop.
poro and struct ancestors
2.1.4 :004 > MyClass.ancestors
[
[0] MyClass < Object,
[1] Object < BasicObject,
[2] PP::ObjectMixin,
[3] ERB::Util,
[4] ActiveSupport::Dependencies::Loadable,
[5] JSON::Ext::Generator::GeneratorMethods::Object,
[6] Kernel,
[7] BasicObject
]
2.1.4 :005 > Struct.ancestors
[
[0] Struct < Object,
[1] Enumerable,
[2] Object < BasicObject,
[3] PP::ObjectMixin,
[4] ERB::Util,
[5] ActiveSupport::Dependencies::Loadable,
[6] JSON::Ext::Generator::GeneratorMethods::Object,
[7] Kernel,
[8] BasicObject
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment