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