Class: Oppen::Token::LineBreak

Inherits:
Break show all
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

Methods inherited from Break

#to_s

Methods inherited from Oppen::Token

#width

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