Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
Velvet::Field
Inherits
Reference
<
Object
A single prompt field — the core unit
Constructors
new
(id :
String
, label :
String
, required :
Bool
= true, condition :
Nil
|
Hash
(
String
,
String
) ->
Bool
= nil)
Source
Instance methods
condition
Source
id
Source
label
Source
matches?
(ctx :
Hash
(
String
,
String
)) :
Bool
Source
required
Source