Class: Oppen::Token::Begin
- Inherits:
-
Oppen::Token
- Object
- Oppen::Token
- Oppen::Token::Begin
- Defined in:
- lib/oppen/token.rb
Overview
Begin Token.
Instance Attribute Summary collapse
- #break_type ⇒ BreakType readonly
- #offset ⇒ Integer readonly
Instance Method Summary collapse
-
#initialize(break_type: :inconsistent, offset: 2) ⇒ Begin
constructor
A new instance of Begin.
Methods inherited from Oppen::Token
Constructor Details
#initialize(break_type: :inconsistent, offset: 2) ⇒ Begin
Returns a new instance of Begin.
88 89 90 91 92 |
# File 'lib/oppen/token.rb', line 88 def initialize(break_type: :inconsistent, offset: 2) @offset = offset @break_type = break_type super() end |
Instance Attribute Details
#break_type ⇒ BreakType (readonly)
84 85 86 |
# File 'lib/oppen/token.rb', line 84 def break_type @break_type end |
#offset ⇒ Integer (readonly)
86 87 88 |
# File 'lib/oppen/token.rb', line 86 def offset @offset end |