class Bindgen::FindPath::VersionCheck

Overview

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

Included Modules

Defined in:

bindgen/find_path/configuration.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.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) #

[View source]

Instance Method Detail

def command : String | Nil #

[View source]
def command=(command : String | Nil) #

[View source]

Fallback behaviour if the regex fails.


[View source]
def fallback=(fallback : Bindgen::FindPath::VersionCheck::Fallback) #

Fallback behaviour if the regex fails.


[View source]
def max : String | Nil #

[View source]
def max=(max : String | Nil) #

[View source]
def min : String | Nil #

[View source]
def min=(min : String | Nil) #

[View source]
def prefer : VersionCheck::Prefer #

Which version to prefer


[View source]
def prefer=(prefer : VersionCheck::Prefer) #

Which version to prefer


[View source]
def regex : String #

Regular expression to grab it from the name


[View source]
def regex=(regex : String) #

Regular expression to grab it from the name


[View source]
def variable : String | Nil #

Variable to store the detected version string in


[View source]
def variable=(variable : String | Nil) #

Variable to store the detected version string in


[View source]