class SyntaxTree::Undef::UndefArgumentFormatter
Undef
accepts a variable number of arguments that can be either DynaSymbol
or SymbolLiteral
objects. For
SymbolLiteral
objects we descend directly into the value in order to have it come out as bare words.
Attributes
DynaSymbol
|SymbolLiteral
-
the symbol to undefine
Public Class Methods
Public Instance Methods
Source
# File lib/syntax_tree/node.rb, line 11251 def comments if node.is_a?(SymbolLiteral) node.comments + node.value.comments else node.comments end end
Source
# File lib/syntax_tree/node.rb, line 11259 def format(q) node.is_a?(SymbolLiteral) ? q.format(node.value) : q.format(node) end