class Ven::Suite::MVector

Overview

Ven's vector data type.

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(value : Array(MClass) | Array(MStruct)) #

[View source]
def self.new(value : Array(Ven::Suite::MClass | Ven::Suite::MStruct) = Models.new) #

[View source]

Instance Method Detail

def callable? #
Description copied from class Ven::Suite::MClass

Returns whether this model is callable.


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

[View source]
def to_num #

Returns the length of this vector.


[View source]
def to_s(io) #

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

Converts (casts) this model into a Vec.


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

Returns whether this model is semantically true.


[View source]

[View source]
def value=(value : Array(Ven::Suite::MClass | Ven::Suite::MStruct)) #

[View source]