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

#offset, #str

Instance Method Summary collapse

Methods inherited from Break

#length, #to_s

Methods inherited from Oppen::Token

#length

Constructor Details

#initialize(offset: 0) ⇒ LineBreak

Returns a new instance of LineBreak.



82
83
84
# File 'lib/oppen/token.rb', line 82

def initialize(offset: 0)
  super(LineBreakString.new, offset:)
end