Class: Sass::Engine::Line

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

Overview

A line of Sass code.

‘text`: [String] : The text in the line, without any whitespace at the beginning or end.

‘tabs`: [Fixnum] : The level of indentation of the line.

‘index`: [Fixnum] : The line number in the original document.

‘offset`: [Fixnum] : The number of bytes in on the line that the text begins.

This ends up being the number of bytes of leading whitespace.

‘filename`: [String] : The name of the file in which this line appeared.

‘children`: [Array<Line>] : The lines nested below this one.

Instance Attribute Summary collapse

Instance Attribute Details

#childrenObject

Returns the value of attribute children

Returns:

  • (Object)

    the current value of children



72
73
74
# File 'lib/sass/engine.rb', line 72

def children
  @children
end

#filenameObject

Returns the value of attribute filename

Returns:

  • (Object)

    the current value of filename



72
73
74
# File 'lib/sass/engine.rb', line 72

def filename
  @filename
end

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



72
73
74
# File 'lib/sass/engine.rb', line 72

def index
  @index
end

#offsetObject

Returns the value of attribute offset

Returns:

  • (Object)

    the current value of offset



72
73
74
# File 'lib/sass/engine.rb', line 72

def offset
  @offset
end

#tabsObject

Returns the value of attribute tabs

Returns:

  • (Object)

    the current value of tabs



72
73
74
# File 'lib/sass/engine.rb', line 72

def tabs
  @tabs
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



72
73
74
# File 'lib/sass/engine.rb', line 72

def text
  @text
end