Created
December 22, 2011 22:42
-
-
Save NeMO84/1512178 to your computer and use it in GitHub Desktop.
Module Include/Extend Goal
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
class API < Grape::API | |
version 'v1', :using => :header, :vendor => 'onescreen', :format => :json | |
get 'hello' do | |
{:hello => 'world'} | |
end | |
# include Behavior | |
end |
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 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