Class: Sass::Tree::Visitors::Cssize::Bubble
- Inherits:
- Object
- Object
- Sass::Tree::Visitors::Cssize::Bubble
- Defined in:
- /Users/ceppstei/Projects/sass-lang/.sass/lib/sass/tree/visitors/cssize.rb
Overview
A wrapper class for a node that indicates to the parent that it should treat the wrapped node as a sibling rather than a child.
Nodes should be wrapped before they’re passed to visit. They will be automatically visited upon calling #pop.
This duck types as a [Sass::Tree::Node] for the purposes of tree-manipulation operations.
Instance Attribute Summary (collapse)
- - group_end
Returns the value of attribute group_end.
- - node
Returns the value of attribute node.
- - tabs
Returns the value of attribute tabs.
Instance Method Summary (collapse)
- - (Boolean) bubbles?
- - (Bubble) initialize(node) constructor
A new instance of Bubble.
- - inspect
Constructor Details
- (Bubble) initialize(node)
Returns a new instance of Bubble
360 361 362 363 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/tree/visitors/cssize.rb', line 360
def initialize(node)
@node = node
@tabs = 0
end |
Instance Attribute Details
- group_end
Returns the value of attribute group_end
358 359 360 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/tree/visitors/cssize.rb', line 358
def group_end
@group_end
end |
- node
Returns the value of attribute node
356 357 358 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/tree/visitors/cssize.rb', line 356
def node
@node
end |
- tabs
Returns the value of attribute tabs
357 358 359 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/tree/visitors/cssize.rb', line 357
def tabs
@tabs
end |
Instance Method Details
- (Boolean) bubbles?
365 366 367 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/tree/visitors/cssize.rb', line 365
def bubbles?
true
end |
- inspect
369 370 371 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/tree/visitors/cssize.rb', line 369
def inspect
"(Bubble #{node.inspect})"
end |