Class: Cabriolet::QuantumShared::Model

Inherits:
Object
  • Object
show all
Defined in:
lib/cabriolet/quantum_shared.rb

Overview

Represents an arithmetic coding model

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(syms, entries) ⇒ Model



52
53
54
55
56
# File 'lib/cabriolet/quantum_shared.rb', line 52

def initialize(syms, entries)
  @syms = syms
  @entries = entries
  @shiftsleft = 4
end

Instance Attribute Details

#entriesObject

Returns the value of attribute entries.



50
51
52
# File 'lib/cabriolet/quantum_shared.rb', line 50

def entries
  @entries
end

#shiftsleftObject

Returns the value of attribute shiftsleft.



50
51
52
# File 'lib/cabriolet/quantum_shared.rb', line 50

def shiftsleft
  @shiftsleft
end

#symsObject

Returns the value of attribute syms.



50
51
52
# File 'lib/cabriolet/quantum_shared.rb', line 50

def syms
  @syms
end