Class: RBI::EmptyComment

Inherits:
Comment show all
Extended by:
T::Sig
Defined in:
lib/rbi/model.rb,
lib/rbi/printer.rb

Instance Attribute Summary

Attributes inherited from Comment

#text

Attributes inherited from Node

#loc, #parent_tree

Instance Method Summary collapse

Methods inherited from Comment

#==

Methods inherited from Node

#compatible_with?, #detach, #group_kind, #merge_with, #oneline?, #parent_conflict_tree, #parent_scope, #print, #replace, #string

Constructor Details

#initialize(loc: nil) ⇒ EmptyComment

Returns a new instance of EmptyComment.



73
74
75
# File 'lib/rbi/model.rb', line 73

def initialize(loc: nil)
  super("", loc: loc)
end

Instance Method Details

#accept_printer(v) ⇒ Object



170
171
172
# File 'lib/rbi/printer.rb', line 170

def accept_printer(v)
  v.printn
end