Sha256: dbf776cbf6b58456033fcb8f9a81fb03083dd49764256b1447396f5d3a53c354
Contents?: true
Size: 503 Bytes
Versions: 6
Compression:
Stored size: 503 Bytes
Contents
# This library requires the given name. This is useful for loading standard libraries, # non-gem libraries (i.e. rip packages) and anything else in $LOAD_PATH. # # Example: # >> load_library 'fileutils', :class_commands=>{'cd'=>'FileUtils.cd', 'cp'=>'FileUtils.cp'} # => true # >> cd '/home' # => 0 # >> Dir.pwd # >> '/home' class Boson::RequireLibrary < Boson::GemLibrary handles {|source| begin Kernel.load("#{source}.rb", true) rescue LoadError false end } end
Version data entries
6 entries across 6 versions & 1 rubygems