Class: Klenod::Build::SourceLocation

Inherits:
Data
  • Object
show all
Defined in:
lib/klenod/build/dependency.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



5
6
7
# File 'lib/klenod/build/dependency.rb', line 5

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



5
6
7
# File 'lib/klenod/build/dependency.rb', line 5

def line
  @line
end

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



5
6
7
# File 'lib/klenod/build/dependency.rb', line 5

def path
  @path
end

Instance Method Details

#to_sObject



7
8
9
# File 'lib/klenod/build/dependency.rb', line 7

def to_s
  [path, line, column].compact.join(":")
end