class Crystal::Macros::StringLiteral
inherits Crystal::Macros::ASTNode
¶
A string literal.
Methods¶
#camelcase(*, lower : BoolLiteral = false) : StringLiteral
¶
(*, lower : BoolLiteral = false) : StringLiteral
Similar to String#camelcase
.
#ends_with?(other : StringLiteral | CharLiteral) : BoolLiteral
¶
(other : StringLiteral | CharLiteral) : BoolLiteral
Similar to String#ends_with?
.
#gsub(regex : RegexLiteral, replacement : StringLiteral) : StringLiteral
¶
(regex : RegexLiteral, replacement : StringLiteral) : StringLiteral
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?
.