Class: RBI::BlankLine
- Extended by:
- T::Sig
- Defined in:
- lib/rbi/model.rb,
lib/rbi/printer.rb
Overview
An arbitrary blank line that can be added both in trees and comments
Instance Attribute Summary
Attributes inherited from Comment
Attributes inherited from Node
Instance Method Summary collapse
- #accept_printer(v) ⇒ Object
-
#initialize(loc: nil) ⇒ BlankLine
constructor
A new instance of BlankLine.
Methods inherited from Comment
Methods inherited from Node
#compatible_with?, #detach, #group_kind, #merge_with, #oneline?, #parent_conflict_tree, #parent_scope, #print, #print_blank_line_before, #replace, #string
Constructor Details
#initialize(loc: nil) ⇒ BlankLine
Returns a new instance of BlankLine.
74 75 76 |
# File 'lib/rbi/model.rb', line 74 def initialize(loc: nil) super("", loc: loc) end |
Instance Method Details
#accept_printer(v) ⇒ Object
187 188 189 |
# File 'lib/rbi/printer.rb', line 187 def accept_printer(v) v.printn end |