Class: Kumi::Syntax::Location

Inherits:
Struct
  • Object
show all
Defined in:
lib/kumi/syntax/location.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#columnObject

Returns the value of attribute column



3
4
5
# File 'lib/kumi/syntax/location.rb', line 3

def column
  @column
end

#fileObject

Returns the value of attribute file



3
4
5
# File 'lib/kumi/syntax/location.rb', line 3

def file
  @file
end

#lineObject

Returns the value of attribute line



3
4
5
# File 'lib/kumi/syntax/location.rb', line 3

def line
  @line
end

Instance Method Details

#to_sObject



4
5
6
# File 'lib/kumi/syntax/location.rb', line 4

def to_s
  "#{file} line=#{line} column=#{column}"
end