abstract class Velvet::Field

Overview

A single prompt field — the core unit

Direct Known Subclasses

Defined in:

velvet/schema.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : String, label : String, required : Bool = true, condition : Nil | Hash(String, String) -> Bool = nil) #

[View source]

Instance Method Detail

def condition : Hash(String, String) -> Bool | Nil #

[View source]
def id : String #

[View source]
def label : String #

[View source]
def matches?(ctx : Hash(String, String)) : Bool #

[View source]
def required : Bool #

[View source]