Class: RedParse::GoalPostToken

Inherits:
Token
  • Object
show all
Defined in:
lib/redparse/node.rb

Overview

not to appear in final tree

Instance Attribute Summary collapse

Attributes inherited from Token

#line, #startline

Attributes included from Stackable::Meta

#boolean_identity_params, #identity_params

Instance Method Summary collapse

Methods inherited from Token

#begin_parsetree, #data, #lvalue, #rescue_parsetree, #to_parsetree, #unary

Methods included from Stackable::Meta

#build_exemplars, #enumerate_exemplars, #identity_param

Methods included from Stackable

#identity_name

Constructor Details

#initialize(offset) ⇒ GoalPostToken

Returns a new instance of GoalPostToken.



5081
# File 'lib/redparse/node.rb', line 5081

def initialize(offset); @offset=offset end

Instance Attribute Details

#offsetObject (readonly)

Returns the value of attribute offset.



5083
5084
5085
# File 'lib/redparse/node.rb', line 5083

def offset
  @offset
end

Instance Method Details

#identObject



5082
# File 'lib/redparse/node.rb', line 5082

def ident; "|" end

#imageObject



5085
# File 'lib/redparse/node.rb', line 5085

def image; "|" end