Class: Graphlyte::Lexing::Position
- Inherits:
-
Struct
- Object
- Struct
- Graphlyte::Lexing::Position
- Defined in:
- lib/graphlyte/lexing/location.rb
Instance Attribute Summary collapse
-
#col ⇒ Object
Returns the value of attribute col.
-
#line ⇒ Object
Returns the value of attribute line.
Instance Method Summary collapse
Instance Attribute Details
#col ⇒ Object
Returns the value of attribute col
5 6 7 |
# File 'lib/graphlyte/lexing/location.rb', line 5 def col @col end |
#line ⇒ Object
Returns the value of attribute line
5 6 7 |
# File 'lib/graphlyte/lexing/location.rb', line 5 def line @line end |
Instance Method Details
#to_s ⇒ Object
6 7 8 |
# File 'lib/graphlyte/lexing/location.rb', line 6 def to_s "#{line}:#{col}" end |