class RBI::Param

Attributes

name[R]

Public Class Methods

new(name, loc: nil, comments: []) click to toggle source
Calls superclass method RBI::NodeWithComments::new
# File lib/rbi/model.rb, line 547
def initialize(name, loc: nil, comments: [])
  super(loc: loc, comments: comments)
  @name = name
end

Public Instance Methods

accept_printer(v) click to toggle source
# File lib/rbi/printer.rb, line 402
def accept_printer(v)
  v.print(name.to_s)
end
print_comment_leading_space(v, last:) click to toggle source
to_s() click to toggle source
# File lib/rbi/model.rb, line 553
def to_s
  name
end