Class: Squish::Leaf
Overview
Originally written by Aggelos Orfanakos
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
:nodoc:.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(weight, data) ⇒ Leaf
constructor
A new instance of Leaf.
Methods inherited from Node
Constructor Details
#initialize(weight, data) ⇒ Leaf
Returns a new instance of Leaf.
346 347 348 349 |
# File 'lib/squish.rb', line 346 def initialize(weight, data) super(weight) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
:nodoc:
344 345 346 |
# File 'lib/squish.rb', line 344 def data @data end |