Class: Parselly::Lexer::TokenValue
- Inherits:
-
Struct
- Object
- Struct
- Parselly::Lexer::TokenValue
- Defined in:
- lib/parselly/lexer.rb
Instance Attribute Summary collapse
-
#position ⇒ Object
Returns the value of attribute position.
-
#quote ⇒ Object
Returns the value of attribute quote.
-
#raw ⇒ Object
Returns the value of attribute raw.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#position ⇒ Object
Returns the value of attribute position
19 20 21 |
# File 'lib/parselly/lexer.rb', line 19 def position @position end |
#quote ⇒ Object
Returns the value of attribute quote
19 20 21 |
# File 'lib/parselly/lexer.rb', line 19 def quote @quote end |
#raw ⇒ Object
Returns the value of attribute raw
19 20 21 |
# File 'lib/parselly/lexer.rb', line 19 def raw @raw end |
#value ⇒ Object
Returns the value of attribute value
19 20 21 |
# File 'lib/parselly/lexer.rb', line 19 def value @value end |
Instance Method Details
#==(other) ⇒ Object
24 25 26 |
# File 'lib/parselly/lexer.rb', line 24 def ==(other) other.respond_to?(:value) ? value == other.value : value == other end |
#to_s ⇒ Object
20 21 22 |
# File 'lib/parselly/lexer.rb', line 20 def to_s value.to_s end |