class Bindgen::FindPath::VersionCheck
- Bindgen::FindPath::VersionCheck
 - Reference
 - Object
 
Overview
A path check testing the version of a path or program.
Included Modules
- YAML::Serializable
 
Defined in:
bindgen/find_path/configuration.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
 - .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)
 
Instance Method Summary
- #command : String | Nil
 - #command=(command : String | Nil)
 - 
        #fallback : Bindgen::FindPath::VersionCheck::Fallback
        
          
Fallback behaviour if the regex fails.
 - 
        #fallback=(fallback : Bindgen::FindPath::VersionCheck::Fallback)
        
          
Fallback behaviour if the regex fails.
 - #max : String | Nil
 - #max=(max : String | Nil)
 - #min : String | Nil
 - #min=(min : String | Nil)
 - 
        #prefer : VersionCheck::Prefer
        
          
Which version to prefer
 - 
        #prefer=(prefer : VersionCheck::Prefer)
        
          
Which version to prefer
 - 
        #regex : String
        
          
Regular expression to grab it from the name
 - 
        #regex=(regex : String)
        
          
Regular expression to grab it from the name
 - 
        #variable : String | Nil
        
          
Variable to store the detected version string in
 - 
        #variable=(variable : String | Nil)
        
          
Variable to store the detected version string in
 
Constructor Detail
        
        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)
        #
      
      
      Instance Method Detail
        
        def fallback=(fallback : Bindgen::FindPath::VersionCheck::Fallback)
        #
      
      
        Fallback behaviour if the regex fails.