Class: Oppen::Token::Begin

Inherits:
Oppen::Token show all
Defined in:
lib/oppen/token.rb

Overview

Begin Token.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Oppen::Token

#width

Constructor Details

#initialize(break_type: BreakType::INCONSISTENT, offset: 2) ⇒ Begin

Returns a new instance of Begin.



87
88
89
90
91
# File 'lib/oppen/token.rb', line 87

def initialize(break_type: BreakType::INCONSISTENT, offset: 2)
  @offset = offset
  @break_type = break_type
  super()
end

Instance Attribute Details

#break_typeBreakType (readonly)

Returns:



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

def break_type
  @break_type
end

#offsetInteger (readonly)

Returns Indentation.

Returns:

  • (Integer)

    Indentation.



85
86
87
# File 'lib/oppen/token.rb', line 85

def offset
  @offset
end