class SyntaxTree::Params::OptionalFormatter
Formats the optional position of the parameters. This includes the label, as well as the default value.
Attributes
Public Class Methods
Source
# File lib/syntax_tree/node.rb, line 8221 def initialize(name, value) @name = name @value = value end
Public Instance Methods
Source
# File lib/syntax_tree/node.rb, line 8230 def format(q) q.format(name) q.text(" = ") q.format(value) end