Class: SyntaxTree::RBS::MethodSignature::RestKeyword
- Inherits:
-
Object
- Object
- SyntaxTree::RBS::MethodSignature::RestKeyword
- Defined in:
- lib/syntax_tree/rbs/utils.rb
Instance Attribute Summary collapse
-
#param ⇒ Object
readonly
Returns the value of attribute param.
Instance Method Summary collapse
- #format(q) ⇒ Object
-
#initialize(param) ⇒ RestKeyword
constructor
A new instance of RestKeyword.
Constructor Details
#initialize(param) ⇒ RestKeyword
Returns a new instance of RestKeyword.
289 290 291 |
# File 'lib/syntax_tree/rbs/utils.rb', line 289 def initialize(param) @param = param end |
Instance Attribute Details
#param ⇒ Object (readonly)
Returns the value of attribute param.
287 288 289 |
# File 'lib/syntax_tree/rbs/utils.rb', line 287 def param @param end |
Instance Method Details
#format(q) ⇒ Object
293 294 295 296 |
# File 'lib/syntax_tree/rbs/utils.rb', line 293 def format(q) q.text("**") param.format(q) end |