require 'rubygems'
Posted
by demas
on Stack Overflow
See other posts from Stack Overflow
or by demas
Published on 2010-04-26T07:41:56Z
Indexed on
2010/04/26
7:43 UTC
Read the original article
Hit count: 325
I have seen many samples of Ruby code with this line (for example, http://www.sinatrarb.com/). What is purpose of this require?
# require 'rubygems'
require 'sinatra'
get '/hi' do
"Hello world!"
end
In all cases the code works without this line.
© Stack Overflow or respective owner