Class: SrlRuby::Position

Inherits:
Struct
  • Object
show all
Defined in:
lib/srl_ruby/srl_token.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#columnObject

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



5
6
7
# File 'lib/srl_ruby/srl_token.rb', line 5

def column
  @column
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



5
6
7
# File 'lib/srl_ruby/srl_token.rb', line 5

def line
  @line
end

Instance Method Details

#to_sObject



6
7
8
# File 'lib/srl_ruby/srl_token.rb', line 6

def to_s
  "line #{line}, column #{column}"
end