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