abstract struct Ven::Suite::MValue(T)

Overview

A Ven value that has the Crystal type T.

Direct Known Subclasses

Defined in:

ven/suite/model.cr

Constructors

Instance Method Summary

Instance methods inherited from struct Ven::Suite::MStruct

[]=(referent : Model, value : Model) : Model | Nil []=, []?(index : Int)
[]?(index : Range)
[]?
, callable? : Bool callable?, eqv?(other : Model) : Bool eqv?, false? : Bool false?, field(name : String) : Model | Nil field, indexable? indexable?, initialize initialize, length : Int32 length, match(other : Model) match, nth(index : Num)
nth(range : MRange)
nth(other)
nth
, of?(other : MType) : Bool
of?(other : MAny)
of?(other)
of?
, set_referent(referent : Model, value : Model) : Model set_referent, 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?, weight : MWeight weight

Constructor methods inherited from struct Ven::Suite::MStruct

new new

Constructor Detail

def self.new(value : T) #

[View source]

Instance Method Detail

def eqv?(other : MValue) #

[View source]
def to_s(io) #

[View source]
def value : T #

[View source]