class RBI::KwRestParam
Public Class Methods
new(name, loc: nil, comments: [], &block)
click to toggle source
Calls superclass method
RBI::Param::new
# File lib/rbi/model.rb, line 704 def initialize(name, loc: nil, comments: [], &block) super(name, loc: loc, comments: comments) block&.call(self) end
Public Instance Methods
==(other)
click to toggle source
# File lib/rbi/model.rb, line 715 def ==(other) KwRestParam === other && name == other.name end
accept_printer(v)
click to toggle source
# File lib/rbi/printer.rb, line 479 def accept_printer(v) v.print("**#{name}") end
print_comment_leading_space(v, last:)
click to toggle source
Calls superclass method
RBI::Param#print_comment_leading_space
# File lib/rbi/printer.rb, line 484 def print_comment_leading_space(v, last:) super v.print(" ") end
to_s()
click to toggle source
# File lib/rbi/model.rb, line 710 def to_s "**#{name}:" end