Class: RSAC::DelimiterToken

Inherits:
Token
  • Object
show all
Defined in:
lib/antisamy/csspool/rsac/sac/token.rb

Instance Attribute Summary

Attributes inherited from Token

#name, #position, #value

Instance Method Summary collapse

Constructor Details

#initialize(value, position) ⇒ DelimiterToken

Returns a new instance of DelimiterToken.



17
18
19
# File 'lib/antisamy/csspool/rsac/sac/token.rb', line 17

def initialize(value, position)
  super(:delim, value, position)
end

Instance Method Details

#to_racc_tokenObject



21
22
23
# File 'lib/antisamy/csspool/rsac/sac/token.rb', line 21

def to_racc_token
  [value, value]
end