Class: Squish::Internal

Inherits:
Node
  • Object
show all
Defined in:
lib/squish.rb

Overview

Originally written by Aggelos Orfanakos

Instance Attribute Summary collapse

Attributes inherited from Node

#weight

Instance Method Summary collapse

Methods inherited from Node

#<=>

Constructor Details

#initialize(weight, left, right) ⇒ Internal

Returns a new instance of Internal.



335
336
337
338
339
# File 'lib/squish.rb', line 335

def initialize(weight, left, right)
  super(weight)
  @left = left
  @right = right
end

Instance Attribute Details

#leftObject (readonly)

:nodoc:



333
334
335
# File 'lib/squish.rb', line 333

def left
  @left
end

#rightObject (readonly)

:nodoc:



333
334
335
# File 'lib/squish.rb', line 333

def right
  @right
end