abstract struct Number
- Number
- Value
- Object
Overview
The top-level number type.
Included Modules
- Comparable(Number)
- Steppable
Defined in:
cassowary/number.crInstance Method Summary
-
#!=(other : Cassowary::Operand) : NoReturn
Fails to compile: an inequation is not a linear constraint.
-
#*(other : Cassowary::Operand) : Cassowary::Expression
Returns other multiplied by this number.
-
#+(other : Cassowary::Operand) : Cassowary::Expression
Returns the sum of this number and other.
-
#-(other : Cassowary::Operand) : Cassowary::Expression
Returns the difference of this number and other.
-
#<=(other : Cassowary::Operand) : Cassowary::Constraint
Returns a required constraint that this number is at most other.
-
#==(other : Cassowary::Operand) : Cassowary::Constraint
Returns a required constraint that this number equals other.
-
#>=(other : Cassowary::Operand) : Cassowary::Constraint
Returns a required constraint that this number is at least other.
Instance Method Detail
Fails to compile: an inequation is not a linear constraint. See Cassowary::Operand#!=.
Returns other multiplied by this number.
Returns the sum of this number and other.
Returns the difference of this number and other.
Returns a required constraint that this number is at most other.
Returns a required constraint that this number equals other.
Returns a required constraint that this number is at least other.