Class: SyntaxTree::AryPtn::RestFormatter
- Inherits:
-
Object
- Object
- SyntaxTree::AryPtn::RestFormatter
- Defined in:
- lib/syntax_tree.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
- VarField
-
the identifier that represents the remaining positionals.
Instance Method Summary collapse
- #comments ⇒ Object
- #format(q) ⇒ Object
-
#initialize(value) ⇒ RestFormatter
constructor
A new instance of RestFormatter.
Constructor Details
#initialize(value) ⇒ RestFormatter
Returns a new instance of RestFormatter.
1505 1506 1507 |
# File 'lib/syntax_tree.rb', line 1505 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
- VarField
-
the identifier that represents the remaining positionals
1503 1504 1505 |
# File 'lib/syntax_tree.rb', line 1503 def value @value end |
Instance Method Details
#comments ⇒ Object
1509 1510 1511 |
# File 'lib/syntax_tree.rb', line 1509 def comments value.comments end |
#format(q) ⇒ Object
1513 1514 1515 1516 |
# File 'lib/syntax_tree.rb', line 1513 def format(q) q.text("*") q.format(value) end |