Bindgen::FindPath
Finds paths to files and directories, per user-configuration. Used to find dependencies of user projects in a somewhat portable fashion.
By default this class modifies ENV directly.
Constants
Pure multi-line option. Crystal by defaults combines multi-line with the dot-all option, which we don't want.
Constructors
Instance methods
Returns a new MatchFinder decided by config.
Finds a path for config. On success, returns the path as string.
Returns nil on error.
If the match wants to set additional variables, it'll write them into the additional hash. If no additional is given, these variables are lost.
Finds all paths of config, yielding for each successful find.
Unsuccessful matches are collected into an Error array and returned
afterwards.
If additional is given, additional variables set by matches are stored
within it. If no additional is given, these variables are lost.
Finds all paths of config, and adds missing ones to #variables.
Returns a list of all encountered errors.
Nested types
- Bindgen::FindPath::AlwaysStringConverter
- Bindgen::FindPath::AnyOfCheck
- Bindgen::FindPath::AnyOfChecker
- Bindgen::FindPath::Checker
- Bindgen::FindPath::Configuration
- Bindgen::FindPath::Error
- Bindgen::FindPath::GenericVersion
- Bindgen::FindPath::Kind
- Bindgen::FindPath::ListConfig
- Bindgen::FindPath::ListConfigConverter
- Bindgen::FindPath::ListMatchCollector
- Bindgen::FindPath::MatchCollector
- Bindgen::FindPath::MatchFinder
- Bindgen::FindPath::PathCheck
- Bindgen::FindPath::PathChecker
- Bindgen::FindPath::PathConfig
- Bindgen::FindPath::ShellCheck
- Bindgen::FindPath::ShellChecker
- Bindgen::FindPath::ShellTry
- Bindgen::FindPath::VersionCheck
- Bindgen::FindPath::VersionChecker
- Bindgen::FindPath::VersionedMatchFinder