class Crystal::Macros::RangeLiteral
inherits Crystal::Macros::ASTNode
¶
A range literal.
Methods¶
#map(&) : ArrayLiteral
¶
(&) : ArrayLiteral
Similar to Enumerable#map
for a Range
.
Only works on ranges of NumberLiteral
s considered as integers.
#to_a : ArrayLiteral
¶
: ArrayLiteral
Similar to Enumerable#to_a
for a Range
.
Only works on ranges of NumberLiteral
s considered as integers.