Created
September 6, 2012 16:27
-
-
Save jbowles/3658170 to your computer and use it in GitHub Desktop.
New app server with a class for leartoprogram course at One on One
This file contains hidden or 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
require File.join(File.dirname(__FILE__), 'lib','new_class.rb') | |
nc = NewClass | |
tell_me = NewClass.tell_me_something | |
rs = nc.randomize_select | |
app = Proc.new do |env| | |
response = [] | |
response << 200 | |
response << { 'Content-Type' => 'text/plain'} | |
response << ["Here is our class: #{nc}.\n Here is our method call from the class: #{tell_me}.\n And check this out: #{rs}"] | |
end | |
run app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment