class SyntaxTree::Params::KeywordRestFormatter

Formats the keyword_rest position of the parameters. This can be the **nil syntax, the … syntax, or the ** syntax.

Attributes

value[R]
:nil | ArgsForward | KwRestParam

the value of the parameter

Public Class Methods

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

Public Instance Methods

comments() click to toggle source
# File lib/syntax_tree/node.rb, line 8260
def comments
  []
end
format(q) click to toggle source
# File lib/syntax_tree/node.rb, line 8264
def format(q)
  value == :nil ? q.text("**nil") : q.format(value)
end