Class: Sass::Tree::Visitors::Cssize::Extend

Inherits:
Struct
  • Object
show all
Defined in:
lib/sass/tree/visitors/cssize.rb

Overview

A simple struct wrapping up information about a single @extend instance. A single [ExtendNode] can have multiple Extends if either the parent node or the extended selector is a comma sequence.

Instance Attribute Summary collapse

Instance Attribute Details

#directivesArray<Sass::Tree::DirectiveNode> (protected)

The directives containing the @extend.

Returns:



101
102
103
# File 'lib/sass/tree/visitors/cssize.rb', line 101

def directives
  @directives
end

#extenderSass::Selector::Sequence (protected)

The selector of the CSS rule containing the @extend.

Returns:



101
102
103
# File 'lib/sass/tree/visitors/cssize.rb', line 101

def extender
  @extender
end

#nodeSass::Tree::ExtendNode (protected)

The node that produced this extend.

Returns:



101
102
103
# File 'lib/sass/tree/visitors/cssize.rb', line 101

def node
  @node
end

#resultSymbol (protected)

The result of this extend. One of :not_found (the target doesn't exist in the document), :failed_to_unify (the target exists but cannot be unified with the extender), or :succeeded.

Returns:

  • (Symbol)

    the current value of result



101
102
103
# File 'lib/sass/tree/visitors/cssize.rb', line 101

def result
  @result
end

#targetArray<Sass::Selector::Simple> (protected)

The selector being @extended.

Returns:



101
102
103
# File 'lib/sass/tree/visitors/cssize.rb', line 101

def target
  @target
end