Skip to content

class Crystal::Macros::SymbolLiteral
inherits Crystal::Macros::ASTNode

A symbol literal.

Methods

#=~(range : RegexLiteral) : BoolLiteral

Similar to String#=~.

View source

#[](range : RangeLiteral) : SymbolLiteral

Similar to String#[].

View source

#capitalize : SymbolLiteral

Similar to String#capitalize.

View source

#chomp : SymbolLiteral

Similar to String#chomp.

View source

#downcase : SymbolLiteral

Similar to String#downcase.

View source

#empty? : BoolLiteral

Similar to String#empty?.

View source

#ends_with?(other : StringLiteral | CharLiteral) : BoolLiteral

Similar to String#ends_with?.

View source

#gsub(regex : RegexLiteral, replacement : StringLiteral) : SymbolLiteral

Similar to String#gsub.

View source

#id : MacroId

Returns a MacroId for this symbol's contents.

View source

#includes?(search : StringLiteral | CharLiteral) : BoolLiteral

Similar to String#includes?.

View source

#size : NumberLiteral

Similar to String#size.

View source

#starts_with?(other : StringLiteral | CharLiteral) : BoolLiteral

Similar to String#starts_with?.

View source

#strip : SymbolLiteral

Similar to String#strip.

View source

#titleize : SymbolLiteral

Similar to String#titleize.

View source

#upcase : SymbolLiteral

Similar to String#upcase.

View source