class SyntaxTree::Params::KeywordRestFormatter
Formats the keyword_rest position of the parameters. This can be the **nil syntax, the … syntax, or the ** syntax.
Attributes
- :nil |
ArgsForward
|KwRestParam
-
the value of the parameter
Public Class Methods
Source
# File lib/syntax_tree/node.rb, line 8271 def initialize(value) @value = value end
Public Instance Methods
Source
# File lib/syntax_tree/node.rb, line 8279 def format(q) value == :nil ? q.text("**nil") : q.format(value) end