D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
cool.io-1.5.1
/
lib
/
cool.io
/
Filename :
custom_require.rb
back
Copy
def cool_require(gem) begin m = /(\d+.\d+)/.match(RUBY_VERSION) ver = m[1] require "#{ver}/#{gem}.so" rescue LoadError require gem end end