Created
August 1, 2012 23:04
-
-
Save jwaldrip/3231446 to your computer and use it in GitHub Desktop.
This file contains 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 Api | |
module Methods | |
extend ActiveSupport::Concern | |
included do | |
def self.api_define(&block) | |
class_eval %Q{ | |
module Methods | |
#{yield} | |
end | |
include Methods | |
} | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment