struct Ven::Suite::MString
- Ven::Suite::MString
- Ven::Suite::MValue(String)
- Ven::Suite::MStruct
- Struct
- Value
- Object
Overview
Ven's string data type.
Defined in:
ven/suite/model.crConstructors
Instance Method Summary
-
#callable?
Returns whether this model is callable.
-
#to_num(parse = true)
Returns this string parsed into a
Num
. - #to_s(io)
-
#to_str
Converts (casts) this model into a
Str
. -
#true?
Returns whether this model is semantically true.
Instance methods inherited from struct Ven::Suite::MValue(String)
eqv?(other : MValue)
eqv?,
to_s(io)
to_s,
value
value,
value=(value : T)
value=
Constructor methods inherited from struct Ven::Suite::MValue(String)
new(value : T)
new
Instance methods inherited from struct Ven::Suite::MStruct
callable? : Bool
callable?,
eqv?(other : Model) : Bool
eqv?,
field(name : String) : Model | Nil
field,
initialize
initialize,
is_bool_false? : Bool
is_bool_false?,
of?(other : MType) : Boolof?(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 methods inherited from struct Ven::Suite::MStruct
new
new
Constructor Detail
Instance Method Detail
def callable?
#
Description copied from struct Ven::Suite::MStruct
Returns whether this model is callable.
def to_num(parse = true)
#
Returns this string parsed into a Num
. If parse is
false, returns the length of this string instead.
def to_str
#
Description copied from struct Ven::Suite::MStruct
Converts (casts) this model into a Str
.
def true?
#
Description copied from struct Ven::Suite::MStruct
Returns whether this model is semantically true.