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

Inherits:
Struct
  • Object
show all
Defined in:
/home/nweiz/code/sass-site/.sass/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

- (Object) input

Returns the value of attribute input

Returns:

  • (Object)

    the current value of input



11
12
13
14
15
16
# File '/home/nweiz/code/sass-site/.sass/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

- (Object) output

Returns the value of attribute output

Returns:

  • (Object)

    the current value of output



11
12
13
14
15
16
# File '/home/nweiz/code/sass-site/.sass/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

- (String) inspect

Returns A string representation of the mapping.

Returns:

  • (String)

    A string representation of the mapping.



13
14
15
# File '/home/nweiz/code/sass-site/.sass/lib/sass/source/map.rb', line 13

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