class

Bindgen::FindPath::VersionCheck

Inherits YAML::Serializable < Reference < Object

A path check testing the version of a path or program.

Constructors

new(min : Nil | String = nil, max : Nil | String = nil, prefer : Bindgen::FindPath::VersionCheck::Prefer = Bindgen::FindPath::VersionCheck::Prefer::Highest, fallback : Bindgen::FindPath::VersionCheck::Fallback = Bindgen::FindPath::VersionCheck::Fallback::Fail, regex : String = "-([0-9.]+)$", command : Nil | String = nil)
Source
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Instance methods

command

Custom command to run to figure out the version

Source
command=(command : String | Nil)

Custom command to run to figure out the version

Source
fallback

Fallback behaviour if the regex fails.

Source

Fallback behaviour if the regex fails.

Source
max

Max version string

Source
max=(max : String | Nil)

Max version string

Source
min

Min version string

Source
min=(min : String | Nil)

Min version string

Source
prefer

Which version to prefer

Source
prefer=(prefer : VersionCheck::Prefer)

Which version to prefer

Source
regex

Regular expression to grab it from the name

Source
regex=(regex : String)

Regular expression to grab it from the name

Source
variable

Variable to store the detected version string in

Source
variable=(variable : String | Nil)

Variable to store the detected version string in

Source

Nested types