class Macros::SymbolLiteral

Overview

A symbol literal.

Superclass hierarchy

Object
Reference
Macros::ASTNode
Macros::SymbolLiteral

Defined in:

Instance Method Summary

Instance Method Detail

def +(other : StringLiteral | CharLiteral) : SymbolLiteral

Similar to String#+.


def =~(range : RegexLiteral) : BoolLiteral

Similar to String#=~.


def [](range : RangeLiteral) : SymbolLiteral

Similar to String#[].


def capitalize : SymbolLiteral

Similar to String#capitalize.


def chars : Macros::ArrayLiteral(CharLiteral)

Similar to String#chars.


def chomp : SymbolLiteral

Similar to String#chomp.


def downcase : SymbolLiteral

Similar to String#downcase.


def empty? : BoolLiteral

Similar to String#empty?.


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

Similar to String#ends_with?.


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

Similar to String#gsub.


def id : MacroId

Returns a MacroId for this symbol's contents.


def length : NumberLiteral

Similar to String#length.


def lines : Macros::ArrayLiteral(StringLiteral)

Similar to String#lines.


def split : Macros::ArrayLiteral(StringLiteral)

Similar to String#split.


def split(node : ASTNode) : Macros::ArrayLiteral(StringLiteral)

Similar to String#split.


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

Similar to String#starts_with?.


def strip : SymbolLiteral

Similar to String#strip.


def tr(from : StringLiteral, to : StringLiteral) : SymbolLiteral

Similar to String#tr.


def upcase : SymbolLiteral

Similar to String#upcase.