Sha256: eadb29499b0127341056d631c48568b03e9692d8ac90fff41a7cf7011629cf06

Contents?: true

Size: 596 Bytes

Versions: 1

Compression:

Stored size: 596 Bytes

Contents

require_relative '../../../../lib/load_path'

LoadPath.configure do
  add parent_directory('grandparent', up: 2)
  add parent_directory('parent')
  add sibling_directory('sibling')
  add child_directory('child')
  add child_directory('grandchild', relative_path: ['child'])

  # Must first add desired directory to load path
  require_files parent_directory('grandparent', up: 2)
end


require 'parent_file'
require 'sibling_file'
require 'child_file'
require 'grandchild_file'

GrandParent.grand_parent
Parent.parent
Sibling.sibling
Child.child
GrandChild.grand_child

puts "Testing complete"


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
load_path-0.2.1 test/grandparent/parent/root/test_path.rb