-
Notifications
You must be signed in to change notification settings - Fork 5
Lecture 02
marekjelen edited this page Oct 3, 2011
·
21 revisions
In Ruby code can be separated into files. To load code from file use require
require "somefile.extension"
File with extension [rb, so, o, dll, bundle, jar] can be addressed without the extension. Having a file called somefile.rb these two are equivalent
require "somefile"
require "somefile.rb"
The file, if it is not absolute path, will be looked from paths contained in