class SyntaxTree::HshPtn::KeywordRestFormatter

Formats the optional double-splat from the pattern.

Attributes

keyword_rest[R]
VarField

the parameter that matches the remaining keywords

Public Class Methods

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

Public Instance Methods

comments() click to toggle source
# File lib/syntax_tree/node.rb, line 6031
def comments
  []
end
format(q) click to toggle source
# File lib/syntax_tree/node.rb, line 6035
def format(q)
  q.text("**")
  q.format(keyword_rest)
end