abstract class
Velvet::Field
- Velvet::Field
- Reference
- Object
Overview
A single prompt field — the core unit
Direct Known Subclasses
Defined in:
velvet/schema.crConstructors
Instance Method Summary
- #condition : Hash(String, String) -> Bool | Nil
- #id : String
- #label : String
- #matches?(ctx : Hash(String, String)) : Bool
- #required : Bool
Constructor Detail
def self.new(id : String, label : String, required : Bool = true, condition : Nil | Hash(String, String) -> Bool = nil)
#