class Sass::Source::Range
Attributes
The ending position of the range in the document (exclusive).
@return [Sass::Source::Position]
The file in which this source range appears. This can be nil if the file is unknown or not yet generated.
@return [String]
The importer that imported the file in which this source range appears. This is nil for target ranges.
@return [Sass::Importers::Base]
The starting position of the range in the document (inclusive).
@return [Sass::Source::Position]
Public Class Methods
Source
# File lib/sass/source/range.rb, line 29 def initialize(start_pos, end_pos, file, importer = nil) @start_pos = start_pos @end_pos = end_pos @file = file @importer = importer end
Public Instance Methods
Source
# File lib/sass/source/range.rb, line 37 def inspect "(#{start_pos.inspect} to #{end_pos.inspect}#{" in #{@file}" if @file})" end
@return [String] A string representation of the source range.