class Crystal::Macros::SymbolLiteral
inherits Crystal::Macros::ASTNode
¶
A symbol literal.
Methods¶
#ends_with?(other : StringLiteral | CharLiteral) : BoolLiteral
¶
(other : StringLiteral | CharLiteral) : BoolLiteral
Similar to String#ends_with?
.
#gsub(regex : RegexLiteral, replacement : StringLiteral) : SymbolLiteral
¶
(regex : RegexLiteral, replacement : StringLiteral) : SymbolLiteral
Similar to String#gsub
.
#includes?(search : StringLiteral | CharLiteral) : BoolLiteral
¶
(search : StringLiteral | CharLiteral) : BoolLiteral
Similar to String#includes?
.
#starts_with?(other : StringLiteral | CharLiteral) : BoolLiteral
¶
(other : StringLiteral | CharLiteral) : BoolLiteral
Similar to String#starts_with?
.