struct

Noir::JSOptionGate::Gate

Inherits Struct < Value < Object

index is the parameter's position, key the option key read off it (nil for a bare positional parameter), absent the value it has when the call leaves it out ({ skipAuth = false } = {}: false), unknown a comparison with something other than true/false, either that it sits in an ||, where another operand can still run the refusal.

Constructors

new(index : Int32, key : String | Nil, runs_when : Bool, absent : Bool, unknown : Bool, either : Bool)
Source

Instance methods

absent
clone
Source
copy_with(index _index = @index, key _key = @key, runs_when _runs_when = @runs_when, absent _absent = @absent, unknown _unknown = @unknown, either _either = @either)
Source
either
index
key
runs_when
unknown