class

Therapy::ParseContext(T, V)

Inherits Reference < Object

Constructors

new(value : V, type : Therapy::BaseType(T), full_path : Array(Int32 | String) = [] of String | Int32)
Source

Instance methods

add_error(msg : String, path : Array(String | Int32) | Nil = nil)
Source
assemble_from_subcontexts

Called by container types to assemble result from subcontexts

Source
do_parse
Source
errors
Source
full_path
Source
has_subcontexts?
Source
parse
Source
result_value
Source
value
Source
value=(value : V)
Source
with_subcontexts(parse : -> Nil, collect_errors : -> Array(Error), assemble : -> T | Nil) : self

Set subcontext handlers - called by container types when creating context

Source