class SyntaxTree::AryPtn::RestFormatter
Formats the optional splat of an array pattern.
Attributes
value[R]
VarField
-
the identifier that represents the remaining positionals
Public Class Methods
new(value)
click to toggle source
# File lib/syntax_tree/node.rb, line 1288 def initialize(value) @value = value end
Public Instance Methods
comments()
click to toggle source
# File lib/syntax_tree/node.rb, line 1292 def comments value.comments end
format(q)
click to toggle source
# File lib/syntax_tree/node.rb, line 1296 def format(q) q.text("*") q.format(value) end