class SyntaxTree::HshPtn::KeywordRestFormatter
Formats the optional double-splat from the pattern.
Attributes
VarField
-
the parameter that matches the remaining keywords
Public Class Methods
Source
# File lib/syntax_tree/node.rb, line 6042 def initialize(keyword_rest) @keyword_rest = keyword_rest end
Public Instance Methods
Source
# File lib/syntax_tree/node.rb, line 6050 def format(q) q.text("**") q.format(keyword_rest) end