Skip to content

Instantly share code, notes, and snippets.

@jwaldrip
Created August 1, 2012 23:04
Show Gist options
  • Save jwaldrip/3231446 to your computer and use it in GitHub Desktop.
Save jwaldrip/3231446 to your computer and use it in GitHub Desktop.
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