struct Ven::Suite::ConstrainedParameter

Overview

A parameter constrained by a Ven value.

Defined in:

ven/suite/model.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, constraint : Ven::Suite::MClass | Ven::Suite::MStruct) #

[View source]

Instance Method Detail

def ==(other : ConstrainedParameter) #

Returns whether this constraint is equal to the other constraint.


[View source]
def anonymous? #

Returns whether this parameter is anonymous.


[View source]
def constraint : Model #

[View source]
def matches(other : Model) #

Returns whether this parameter's constraint matches the other model.


[View source]
def name : String #

[View source]
def to_s(io) #

[View source]
def weight : Weight #

[View source]