Skip to content

Instantly share code, notes, and snippets.

/foo.rb Secret

Created July 9, 2012 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/ea1e7ebf3e07bddc82a3 to your computer and use it in GitHub Desktop.
Save anonymous/ea1e7ebf3e07bddc82a3 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
module User < Base
a_bunch_of_stuff_from_base
a_bunch_of_stuff_from_base_2
end
class A < User
# …?
end
class B < User
# …?
end
__END__
Before it was:
class Admin < Base
a_bunch_of_stuff_from_base
a_bunch_of_stuff_from_base_2
end
class Peon < Base
a_bunch_of_stuff_from_base
a_bunch_of_stuff_from_base_2
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment