Skip to content

Instantly share code, notes, and snippets.

@NeMO84
Created December 22, 2011 22:42
Show Gist options
  • Save NeMO84/1512178 to your computer and use it in GitHub Desktop.
Save NeMO84/1512178 to your computer and use it in GitHub Desktop.
Module Include/Extend Goal
class API < Grape::API
version 'v1', :using => :header, :vendor => 'onescreen', :format => :json
get 'hello' do
{:hello => 'world'}
end
# include Behavior
end
module Behavior
get "some_behavior" do
{:some => 'behavior'}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment