ruby require include的区别
转自:http://www.cnblogs.com/forward/archive/2010/01/08/1641972.html
“require” 可載入某個 a.rb 檔案, 且可以省略 ”.rb”. 而且它只會在第一次的時候載入, 若再次 “require” 時就會忽略
require 'a'a = A.new
load 'a.rb'a = A.new
puts $:
require 'webrick'include WEBrick//可以不用 server = WEBrick::HTTPServer.new(...)server = HTTPServer.new(...)