class Bindgen::FindPath::PathConfig

Overview

YAML-based configuration. Used as value for the #find_paths option in Bindgen::Configuration.

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(try : Array(Bindgen::FindPath::ShellTry | String), kind : Bindgen::FindPath::Kind = Bindgen::FindPath::Kind::Directory, optional : Bool = false, error_message : Nil | String = nil, checks : Array(Bindgen::FindPath::AnyOfCheck | Bindgen::FindPath::PathCheck | Bindgen::FindPath::ShellCheck) | Array(Bindgen::FindPath::PathCheck | Bindgen::FindPath::ShellCheck) = [] of Bindgen::FindPath::PathCheck | Bindgen::FindPath::ShellCheck) #

[View source]

Instance Method Detail

Checks to do


[View source]

Checks to do


[View source]
def error_message : String | Nil #

Optional: An error message if not found


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

Optional: An error message if not found


[View source]

Bindgen::FindPath::Kind of file to find


[View source]
def kind=(kind : Bindgen::FindPath::Kind) #

Bindgen::FindPath::Kind of file to find


[View source]
def list : ListConfig | Nil #

[View source]
def list=(list : ListConfig | Nil) #

[View source]
def optional : Bool #

Is this match optional?


[View source]
def optional=(optional : Bool) #

Is this match optional?


[View source]
def search_paths : Array(String) | Nil #

Search paths for relative try paths


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

Search paths for relative try paths


[View source]
def try : Array(String | ShellTry) #

[View source]
def try=(try : Array(String | ShellTry)) #

[View source]
def version : VersionCheck | Nil #

Version check to do


[View source]
def version=(version : VersionCheck | Nil) #

Version check to do


[View source]