class SyntaxTree::AryPtn::RestFormatter
Formats the optional splat of an array pattern.
Attributes
Public Class Methods
Source
# File lib/syntax_tree/node.rb, line 1288 def initialize(value) @value = value end
Public Instance Methods
Source
# File lib/syntax_tree/node.rb, line 1296 def format(q) q.text("*") q.format(value) end