Created
July 10, 2012 13:41
-
-
Save komagata/3083307 to your computer and use it in GitHub Desktop.
sinatra outer func
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
% cat foo.rb | |
def foo | |
'foo' | |
end | |
% cat app.rb | |
require 'rubygems' | |
require 'sinatra' | |
require './foo' | |
get '/' do | |
'hello ' + foo | |
end | |
% ruby app.rb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment