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


360
361
362
363
# File '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 '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 'lib/sass/tree/visitors/cssize.rb', line 356

def node
  @node
end

#tabs

Returns the value of attribute tabs


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

def tabs
  @tabs
end

Instance Method Details

#bubbles?Boolean

Returns:

  • (Boolean)

365
366
367
# File 'lib/sass/tree/visitors/cssize.rb', line 365

def bubbles?
  true
end

#inspect


369
370
371
# File 'lib/sass/tree/visitors/cssize.rb', line 369

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