class Ven::Suite::MBox

Overview

Ven's box type. Basically a concrete fun with body consisting of assignments only. The scope of a box is exposed through MBoxInstances.

Defined in:

ven/suite/model.cr

Constructors

Instance Method Summary

Instance methods inherited from class Ven::Suite::MClass

callable? : Bool callable?, eqv?(other : Model) : Bool eqv?, field(name : String) : Model | Nil field, is_bool_false? : Bool is_bool_false?, of?(other : MType) : Bool
of?(other)
of?
, to_bool(inverse = false) : MBool to_bool, to_num : Num to_num, to_str : Str to_str, to_vec : Vec to_vec, true? : Bool true?, truth=(truth : Bool) truth=, truth? truth?

Constructor Detail

def self.new(tag : Ven::Suite::QTag, name : String, constraints : Array(Ven::Suite::ConstrainedParameter), namespace : Hash(String, Ven::Suite::Quote)) #

[View source]

Instance Method Detail

def arity : UInt8 #

[View source]
def callable? #
Description copied from class Ven::Suite::MClass

Returns whether this model is callable.


[View source]
def constraints : ConstrainedParameters #

[View source]
def eqv?(other : MBox) #

[View source]
def eqv?(other : MBoxInstance) #

[View source]
def name : String #

[View source]
def namespace : Hash(String, Quote) #

[View source]
def params : Array(String) #

[View source]
def slurpy : Bool #

[View source]
def tag : QTag #

[View source]
def to_s(io) #

[View source]