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

#inputObject

Returns the value of attribute input

Returns:

  • (Object)

    the current value of input



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

#outputObject

Returns the value of attribute output

Returns:

  • (Object)

    the current value of output



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