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
- #contain_requirable_file?(relative_path) ⇒ Boolean
- #find_requirable_file(relative_path) ⇒ String?
- #require_paths ⇒ Array<String> abstract
Instance Method Details
#contain_requirable_file?(relative_path) ⇒ 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?
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_paths ⇒ Array<String>
This method is abstract.
10 11 12 |
# File 'lib/yoda/store/objects/library/path_resolvable.rb', line 10 def require_paths fail NotImplementedError end |