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.
1618 1619 1620 |
# File 'lib/syntax_tree.rb', line 1618 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
- VarField
-
the identifier that represents the remaining positionals
1616 1617 1618 |
# File 'lib/syntax_tree.rb', line 1616 def value @value end |
Instance Method Details
#comments ⇒ Object
1622 1623 1624 |
# File 'lib/syntax_tree.rb', line 1622 def comments value.comments end |
#format(q) ⇒ Object
1626 1627 1628 1629 |
# File 'lib/syntax_tree.rb', line 1626 def format(q) q.text("*") q.format(value) end |