Module: Yoda::Store::Objects::Library::PathResolvable

Included in:
Core::Connected, Gem, Std::Connected
Defined in:
lib/yoda/store/objects/library/path_resolvable.rb

Instance Method Summary collapse

Instance Method Details

#contain_requirable_file?(relative_path) ⇒ Boolean

Parameters:

  • relative_path (String)

Returns:

  • (Boolean)


16
17
18
# File 'lib/yoda/store/objects/library/path_resolvable.rb', line 16

def contain_requirable_file?(relative_path)
  !!find_requirable_file(relative_path)
end

#find_requirable_file(relative_path) ⇒ String?

Parameters:

  • relative_path (String)

Returns:

  • (String, nil)


22
23
24
# File 'lib/yoda/store/objects/library/path_resolvable.rb', line 22

def find_requirable_file(relative_path)
  Services::LoadablePathResolver.new.find_loadable_path(require_paths, relative_path)
end

#require_pathsArray<String>

This method is abstract.

Returns:

  • (Array<String>)


10
11
12
# File 'lib/yoda/store/objects/library/path_resolvable.rb', line 10

def require_paths
  fail NotImplementedError
end