class SyntaxTree::Params::OptionalFormatter

Formats the optional position of the parameters. This includes the label, as well as the default value.

Attributes

name[R]
Ident

the name of the parameter

value[R]
Node

the value of the parameter

Public Class Methods

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

Public Instance Methods

comments() click to toggle source
# File lib/syntax_tree/node.rb, line 8211
def comments
  []
end
format(q) click to toggle source
# File lib/syntax_tree/node.rb, line 8215
def format(q)
  q.format(name)
  q.text(" = ")
  q.format(value)
end