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

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

- (Array<Sass::Tree::DirectiveNode>) directives (protected)

The directives containing the @extend.

Returns:



111
112
113
# File '/home/nweiz/code/sass-site/.sass/lib/sass/tree/visitors/cssize.rb', line 111

def directives
  @directives
end

- (Sass::Selector::Sequence) extender (protected)

The selector of the CSS rule containing the @extend.

Returns:



111
112
113
# File '/home/nweiz/code/sass-site/.sass/lib/sass/tree/visitors/cssize.rb', line 111

def extender
  @extender
end

- (Sass::Tree::ExtendNode) node (protected)

The node that produced this extend.

Returns:



111
112
113
# File '/home/nweiz/code/sass-site/.sass/lib/sass/tree/visitors/cssize.rb', line 111

def node
  @node
end

- (Boolean) success (protected)

Whether this extend successfully matched a selector.

Returns:

  • (Boolean)

    the current value of success



111
112
113
# File '/home/nweiz/code/sass-site/.sass/lib/sass/tree/visitors/cssize.rb', line 111

def success
  @success
end

- (Array<Sass::Selector::Simple>) target (protected)

The selector being @extended.

Returns:



111
112
113
# File '/home/nweiz/code/sass-site/.sass/lib/sass/tree/visitors/cssize.rb', line 111

def target
  @target
end