Skip to content

Instantly share code, notes, and snippets.

@rking

rking/foo.rb Secret

Forked from anonymous/foo.rb
Created July 9, 2012 19:55
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 rking/90b2ef4be88f658cfcba to your computer and use it in GitHub Desktop.
Save rking/90b2ef4be88f658cfcba 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
include User
# …?
end
class B
include 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