Class: RBI::EmptyComment
- Extended by:
- T::Sig
- Defined in:
- lib/rbi/model.rb,
lib/rbi/printer.rb
Instance Attribute Summary
Attributes inherited from Comment
Attributes inherited from Node
Instance Method Summary collapse
- #accept_printer(v) ⇒ Object
-
#initialize(loc: nil) ⇒ EmptyComment
constructor
A new instance of EmptyComment.
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 |