Created
June 12, 2014 09:19
-
-
Save bih/68d05bf2b472ebf3e18f to your computer and use it in GitHub Desktop.
Build your own interactive shell in Ruby
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
require "irb" | |
require "irb/completion" | |
def hi | |
"World" | |
end | |
IRB.start | |
# ruby app.rb | |
# 1.9.3-p385 :001 > hi | |
# => "World" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment