Created
October 21, 2015 23:52
-
-
Save mzemel/13b4b755e2ac5fa2e256 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module XMLibrary | |
def self.included(base) | |
base.class_eval do | |
def parse(arg) | |
# ... | |
end | |
end | |
end | |
end | |
class Formatter | |
include XMLibrary | |
# Can now use #parse | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment