Class: Sass::Logger::SourceLocation

Inherits:
Object
  • Object
show all
Defined in:
lib/sass/logger/source_location.rb

Overview

A specific location within a source file.

This is always associated with a SourceSpan which indicates which file it refers to.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(offset, line, column) ⇒ SourceLocation

Returns a new instance of SourceLocation.



14
15
16
17
18
# File 'lib/sass/logger/source_location.rb', line 14

def initialize(offset, line, column)
  @offset = offset
  @line = line
  @column = column
end

Instance Attribute Details

#columnInteger (readonly)

Returns:

  • (Integer)


12
13
14
# File 'lib/sass/logger/source_location.rb', line 12

def column
  @column
end

#lineInteger (readonly)

Returns:

  • (Integer)


12
13
14
# File 'lib/sass/logger/source_location.rb', line 12

def line
  @line
end

#offsetInteger (readonly)

Returns:

  • (Integer)


12
13
14
# File 'lib/sass/logger/source_location.rb', line 12

def offset
  @offset
end