Class: Sass::Tree::Visitors::Cssize::Bubble

Inherits:
Object
  • Object
show all
Defined in:
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

Instance Method Summary collapse

Constructor Details

#initialize(node) ⇒ Bubble

Returns a new instance of Bubble.



349
350
351
352
# File 'lib/sass/tree/visitors/cssize.rb', line 349

def initialize(node)
  @node = node
  @tabs = 0
end

Instance Attribute Details

#group_end

Returns the value of attribute group_end.



347
348
349
# File 'lib/sass/tree/visitors/cssize.rb', line 347

def group_end
  @group_end
end

#node

Returns the value of attribute node.



345
346
347
# File 'lib/sass/tree/visitors/cssize.rb', line 345

def node
  @node
end

#tabs

Returns the value of attribute tabs.



346
347
348
# File 'lib/sass/tree/visitors/cssize.rb', line 346

def tabs
  @tabs
end

Instance Method Details

#bubbles?Boolean

Returns:

  • (Boolean)


354
355
356
# File 'lib/sass/tree/visitors/cssize.rb', line 354

def bubbles?
  true
end

#inspect



358
359
360
# File 'lib/sass/tree/visitors/cssize.rb', line 358

def inspect
  "(Bubble #{node.inspect})"
end