class SyntaxTree::CallOperatorFormatter
- Period node) and formats it when called.
Wraps a call operator (which can be a string literal -
or an Op node or a
def comments
def comments operator == :"::" ? [] : operator.comments end
def format(q)
def format(q) case operator when :"::" q.text(".") when Op operator.value == "::" ? q.text(".") : operator.format(q) else operator.format(q) end end
def initialize(operator)
def initialize(operator) @operator = operator end