Class: SyntaxTree::HshPtn::KeywordRestFormatter
- Inherits:
-
Object
- Object
- SyntaxTree::HshPtn::KeywordRestFormatter
- Defined in:
- lib/syntax_tree/node.rb
Instance Attribute Summary collapse
-
#keyword_rest ⇒ Object
readonly
- VarField
-
the parameter that matches the remaining keywords.
Instance Method Summary collapse
- #comments ⇒ Object
- #format(q) ⇒ Object
-
#initialize(keyword_rest) ⇒ KeywordRestFormatter
constructor
A new instance of KeywordRestFormatter.
Constructor Details
#initialize(keyword_rest) ⇒ KeywordRestFormatter
Returns a new instance of KeywordRestFormatter.
5788 5789 5790 |
# File 'lib/syntax_tree/node.rb', line 5788 def initialize(keyword_rest) @keyword_rest = keyword_rest end |
Instance Attribute Details
#keyword_rest ⇒ Object (readonly)
- VarField
-
the parameter that matches the remaining keywords
5786 5787 5788 |
# File 'lib/syntax_tree/node.rb', line 5786 def keyword_rest @keyword_rest end |
Instance Method Details
#comments ⇒ Object
5792 5793 5794 |
# File 'lib/syntax_tree/node.rb', line 5792 def comments [] end |
#format(q) ⇒ Object
5796 5797 5798 5799 |
# File 'lib/syntax_tree/node.rb', line 5796 def format(q) q.text("**") q.format(keyword_rest) end |