Class: Parselly::Lexer::Identifier
- Inherits:
-
Struct
- Object
- Struct
- Parselly::Lexer::Identifier
- Defined in:
- lib/parselly/lexer.rb
Instance Attribute Summary collapse
-
#position ⇒ Object
Returns the value of attribute position.
-
#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.
8 9 10 |
# File 'lib/parselly/lexer.rb', line 8 def position @position end |
#raw ⇒ Object
Returns the value of attribute raw
7 8 9 |
# File 'lib/parselly/lexer.rb', line 7 def raw @raw end |
#value ⇒ Object
Returns the value of attribute value
7 8 9 |
# File 'lib/parselly/lexer.rb', line 7 def value @value end |
Instance Method Details
#==(other) ⇒ Object
14 15 16 |
# File 'lib/parselly/lexer.rb', line 14 def ==(other) other.respond_to?(:value) ? value == other.value : value == other end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/parselly/lexer.rb', line 10 def to_s value end |