class Bindgen::FindPath::PathCheck
- Bindgen::FindPath::PathCheck
- Reference
- Object
Overview
A path check testing a specific path.
Included Modules
- YAML::Serializable
Defined in:
bindgen/find_path/configuration.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(path : String, kind : Bindgen::FindPath::Kind = Bindgen::FindPath::Kind::File, contains : Nil | String = nil, regex : Bool = false)
Instance Method Summary
-
#contains : String | Nil
Optional: What the file should contain
-
#contains=(contains : String | Nil)
Optional: What the file should contain
-
#kind : Bindgen::FindPath::Kind
What the path should be
-
#kind=(kind : Bindgen::FindPath::Kind)
What the path should be
- #path : String
- #path=(path : String)
-
#regex : Bool
Treat the contains as regular expression?
-
#regex=(regex : Bool)
Treat the contains as regular expression?
Constructor Detail
def self.new(path : String, kind : Bindgen::FindPath::Kind = Bindgen::FindPath::Kind::File, contains : Nil | String = nil, regex : Bool = false)
#