class

Crystal::Macros::RangeLiteral

Inherits Crystal::Macros::ASTNode

A range literal.

Instance methods

begin

Similar to Range#begin

Source
each

Similar to Range#each

Source
end

Similar to Range#end

Source
excludes_end?

Similar to Range#excludes_end?

Source
map

Similar to Enumerable#map for a Range. Only works on ranges of NumberLiterals considered as integers.

Source
to_a

Similar to Enumerable#to_a for a Range. Only works on ranges of NumberLiterals considered as integers.

Source