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.
4481 4482 4483 |
# File 'lib/syntax_tree/node.rb', line 4481 def initialize(keyword_rest) @keyword_rest = keyword_rest end |
Instance Attribute Details
#keyword_rest ⇒ Object (readonly)
- VarField
-
the parameter that matches the remaining keywords
4479 4480 4481 |
# File 'lib/syntax_tree/node.rb', line 4479 def keyword_rest @keyword_rest end |
Instance Method Details
#comments ⇒ Object
4485 4486 4487 |
# File 'lib/syntax_tree/node.rb', line 4485 def comments [] end |
#format(q) ⇒ Object
4489 4490 4491 4492 |
# File 'lib/syntax_tree/node.rb', line 4489 def format(q) q.text("**") q.format(keyword_rest) end |