Sha256: 98fc43f9b3a71e4438564b4ee0fb35dbcbfdd102eae6c2f6461911aeea775b8a

Contents?: true

Size: 1.23 KB

Versions: 137

Compression:

Stored size: 1.23 KB

Contents

module Sass::Source
  class Range
    # The starting position of the range in the document (inclusive).
    #
    # @return [Sass::Source::Position]
    attr_accessor :start_pos

    # The ending position of the range in the document (exclusive).
    #
    # @return [Sass::Source::Position]
    attr_accessor :end_pos

    # The file in which this source range appears. This can be nil if the file
    # is unknown or not yet generated.
    #
    # @return [String]
    attr_accessor :file

    # The importer that imported the file in which this source range appears.
    # This is nil for target ranges.
    #
    # @return [Sass::Importers::Base]
    attr_accessor :importer

    # @param start_pos [Sass::Source::Position] See \{#start_pos}
    # @param end_pos [Sass::Source::Position] See \{#end_pos}
    # @param file [String] See \{#file}
    # @param importer [Sass::Importers::Base] See \{#importer}
    def initialize(start_pos, end_pos, file, importer = nil)
      @start_pos = start_pos
      @end_pos = end_pos
      @file = file
      @importer = importer
    end

    # @return [String] A string representation of the source range.
    def inspect
      "(#{start_pos.inspect} to #{end_pos.inspect}#{" in #{@file}" if @file})"
    end
  end
end

Version data entries

137 entries across 134 versions & 9 rubygems

Version Path
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/source/range.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/sass-3.7.4/lib/sass/source/range.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/sass-3.7.4/lib/sass/source/range.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/sass-3.7.4/lib/sass/source/range.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/sass-3.7.4/lib/sass/source/range.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/sass-3.7.4/lib/sass/source/range.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/sass-3.7.4/lib/sass/source/range.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/sass-3.7.4/lib/sass/source/range.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/sass-3.7.4/lib/sass/source/range.rb
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/sass-3.7.4/lib/sass/source/range.rb
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/sass-3.7.4/lib/sass/source/range.rb
zuora_connect_ui-0.7.1 vendor/ruby/2.6.0/gems/sass-3.7.4/lib/sass/source/range.rb
zuora_connect_ui-0.7.0 vendor/ruby/2.6.0/gems/sass-3.7.4/lib/sass/source/range.rb
sass-3.7.4 lib/sass/source/range.rb
brakeman-4.4.0 bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/source/range.rb
sass-3.7.3 lib/sass/source/range.rb
sass-3.7.2 lib/sass/source/range.rb
sass-3.7.1 lib/sass/source/range.rb
sass-3.7.0 lib/sass/source/range.rb
sass-3.6.0 lib/sass/source/range.rb