Class: SyntaxTree::RBS::MethodSignature::RestKeyword

Inherits:
Object
  • Object
show all
Defined in:
lib/syntax_tree/rbs/utils.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#paramObject (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