Class: Oppen::Token::LineBreak
- Inherits:
-
Break
- Object
- Oppen::Token
- Break
- Oppen::Token::LineBreak
- Defined in:
- lib/oppen/token.rb
Overview
Distinguished instance of Break which forces a line break.
Defined Under Namespace
Classes: LineBreakString
Instance Attribute Summary
Attributes inherited from Break
#line_continuation, #offset, #str, #width
Instance Method Summary collapse
-
#initialize(line_continuation: '', offset: 0) ⇒ LineBreak
constructor
A new instance of LineBreak.
Methods inherited from Break
Methods inherited from Oppen::Token
Constructor Details
#initialize(line_continuation: '', offset: 0) ⇒ LineBreak
Returns a new instance of LineBreak.
81 82 83 |
# File 'lib/oppen/token.rb', line 81 def initialize(line_continuation: '', offset: 0) super(LineBreakString.new, line_continuation:, offset:) end |