Method: LEON::Encoder#initialize

Defined in:
lib/io.rb

#initialize(*args) ⇒ Encoder

Returns a new instance of Encoder.



238
239
240
241
242
243
244
245
246
247
248
249
# File 'lib/io.rb', line 238

def initialize(*args)
  if args.length > 1
    @spec = args[1]
    @hasSpec = true
  else
    @hasSpec = false
  end
  @payload = args[0]
  @OLI = Array.new
  @stringIndex = Array.new
  @buffer = StringBuffer.new
end