Skip to content

Instantly share code, notes, and snippets.

@dsshap
Last active December 16, 2015 07:39
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 dsshap/5400025 to your computer and use it in GitHub Desktop.
Save dsshap/5400025 to your computer and use it in GitHub Desktop.
inheritance
module C
root_element self.name.split("::").last.underscore.to_sym
end
class B
include C
*bunch of constant shit
end
class A < B
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment