kernel#require_relative Ruby tries to load the library named string relative to the requiring file's path. 就是说当前运行文件的目录下面找这个要加载的文件. 如:/Users/个人/Ruby元编程/object_model/hook.rb: #require(name) -> true/false 用于加载标准库,就是和Ruby一起安装的库. from /Users/个人/.rvm/rubi…