Class: Sass::Source::Map::Mapping

Inherits:
Struct
  • Object
show all
Defined in:
lib/sass/source/map.rb

Overview

A mapping from one source range to another. Indicates that input was compiled to output.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#inputSass::Source::Range

Returns The source range in the input document.

Returns:



11
12
13
14
15
16
# File 'lib/sass/source/map.rb', line 11

class Mapping < Struct.new(:input, :output)
  # @return [String] A string representation of the mapping.
  def inspect
    "#{input.inspect} => #{output.inspect}"
  end
end

#outputSass::Source::Range

Returns The source range in the output document.

Returns:



11
12
13
14
15
16
# File 'lib/sass/source/map.rb', line 11

class Mapping < Struct.new(:input, :output)
  # @return [String] A string representation of the mapping.
  def inspect
    "#{input.inspect} => #{output.inspect}"
  end
end

Instance Method Details

#inspectString

Returns A string representation of the mapping.

Returns:

  • (String)

    A string representation of the mapping.



13
14
15
# File 'lib/sass/source/map.rb', line 13

def inspect
  "#{input.inspect} => #{output.inspect}"
end