class Velvet::ConfirmField

Defined in:

velvet/schema.cr

Constructors

Instance Method Summary

Instance methods inherited from class Velvet::Field

condition : Hash(String, String) -> Bool | Nil condition, id : String id, label : String label, matches?(ctx : Hash(String, String)) : Bool matches?, required : Bool required

Constructor methods inherited from class Velvet::Field

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

Constructor Detail

def self.new(id, label, default : Bool = false, required = true, condition = nil) #

[View source]

Instance Method Detail

def default : Bool #

[View source]