Skip to content

class Crystal::Macros::NumberLiteral
inherits Crystal::Macros::ASTNode

Any number literal.

Methods

#%(other : NumberLiteral) : NumberLiteral

Same as Number#%

View source

#&(other : NumberLiteral) : NumberLiteral

Same as Number#&

View source

#**(other : NumberLiteral) : NumberLiteral

Same as Number#**

View source

#<(other : NumberLiteral) : BoolLiteral

Compares this node's value to another node's value.

View source

#<<(other : NumberLiteral) : NumberLiteral

Same as Number#<<

View source

#<=(other : NumberLiteral) : BoolLiteral

Compares this node's value to another node's value.

View source

#<=>(other : NumberLiteral) : NumberLiteral

Compares this node's value to another node's value.

View source

#>(other : NumberLiteral) : BoolLiteral

Compares this node's value to another node's value.

View source

#>=(other : NumberLiteral) : BoolLiteral

Compares this node's value to another node's value.

View source

#>>(other : NumberLiteral) : NumberLiteral

Same as Number#>>

View source

#^(other : NumberLiteral) : NumberLiteral

Same as Number#^

View source

#kind : SymbolLiteral

The type of the literal: :i32, :u16, :f32, :f64, etc.

View source

#|(other : NumberLiteral) : NumberLiteral

Same as Number#|

View source

#~ : NumberLiteral

Same as Number#~

View source