Class: Decode::Location

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



7
8
9
# File 'lib/decode/location.rb', line 7

def line
  @line
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



7
8
9
# File 'lib/decode/location.rb', line 7

def path
  @path
end

Instance Method Details

#to_sObject



8
9
10
# File 'lib/decode/location.rb', line 8

def to_s
	"#{path}:#{line}"
end