struct Ven::Suite::MRegex

Overview

Ven's regex data type.

Defined in:

ven/suite/model.cr

Constructors

Instance Method Summary

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) : 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 methods inherited from struct Ven::Suite::MStruct

new new

Constructor Detail

def self.new(value : Regex) #

[View source]
def self.new(source : String) #

[View source]

Instance Method Detail

def to_s(io) #

[View source]
def to_str #
Description copied from struct Ven::Suite::MStruct

Converts (casts) this model into a Str.


[View source]
def true? #
Description copied from struct Ven::Suite::MStruct

Returns whether this model is semantically true.


[View source]
def value : Regex #

[View source]
def value=(value : Regex) #

[View source]