class HTree::DummyEncodingConverter

Public Class Methods

new(encoding) click to toggle source
# File htree/encoder.rb, line 7
def initialize(encoding)
  @encoding = encoding
end

Public Instance Methods

convert(str) click to toggle source
# File htree/encoder.rb, line 17
def convert(str)
  str
end
finish() click to toggle source
# File htree/encoder.rb, line 21
def finish
  ""
end
primitive_convert(src, dst, destination_buffer=nil, destination_byteoffset=nil, destination_bytesize=nil, opts=nil) click to toggle source
# File htree/encoder.rb, line 11
def primitive_convert(src, dst, destination_buffer=nil, destination_byteoffset=nil, destination_bytesize=nil, opts=nil)
  dst << src
  src.clear
  :source_buffer_empty
end