Class: HuffmanTable::Node::Transition

Inherits:
Object
  • Object
show all
Defined in:
lib/tasks/generate_huffman_table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(emit, node) ⇒ Transition

Returns a new instance of Transition.


39
40
41
42
# File 'lib/tasks/generate_huffman_table.rb', line 39

def initialize(emit, node)
  @emit = emit
  @node = node
end

Instance Attribute Details

#emitObject

Returns the value of attribute emit


38
39
40
# File 'lib/tasks/generate_huffman_table.rb', line 38

def emit
  @emit
end

#nodeObject

Returns the value of attribute node


38
39
40
# File 'lib/tasks/generate_huffman_table.rb', line 38

def node
  @node
end