Sha256: 15ae8e75d2d159d334b132c700fe71fed75e83111e4203878b96eb7c42d36c95

Contents?: true

Size: 945 Bytes

Versions: 1

Compression:

Stored size: 945 Bytes

Contents

require_relative "../lib/loader"

require_relative_directory "/home/reaper/workspace/GEMS/loader/examples/lib"
# one of the file has a "puts \"hello world!\"" that will run on load
#> hello world!

puts Loader.meta "examples","lib","**","meta"
#> {"asdf"=>{"else"=>{"world"=>"hello"}, "stuff"=>{"hello"=>"world"}}}

puts Loader.meta root: File.expand_path(File.dirname(__FILE__))
#> {"asdf"=>{"else"=>{"world"=>"hello"}, "stuff"=>{"hello"=>"world"}}}

puts Loader.meta  "lib","**","meta",
                  root: File.expand_path(File.dirname(__FILE__))
#> {"asdf"=>{"else"=>{"world"=>"hello"}, "stuff"=>{"hello"=>"world"}}}

puts Loader.meta absolute: File.expand_path(File.join(File.dirname(__FILE__),"lib","**","meta"))
#> {"asdf"=>{"else"=>{"world"=>"hello"}, "stuff"=>{"hello"=>"world"}}}

puts Loader.metaloader_framework root: File.expand_path(File.dirname(__FILE__))
#> {"asdf"=>{"else"=>{"world"=>"hello"}, "stuff"=>{"hello"=>"world"}}}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
loader-1.0.3 examples/simple_require.rb