class SyntaxTree::BlockNode::BlockOpenFormatter

Formats the opening brace or keyword of a block.

Attributes

node[R]
LBrace | Keyword

the node that is being represented

text[R]
String

the actual output that should be printed

Public Class Methods

new(text, node) click to toggle source
# File lib/syntax_tree/node.rb, line 4321
def initialize(text, node)
  @text = text
  @node = node
end

Public Instance Methods

comments() click to toggle source
# File lib/syntax_tree/node.rb, line 4326
def comments
  node.comments
end
format(q) click to toggle source
# File lib/syntax_tree/node.rb, line 4330
def format(q)
  q.text(text)
end