Module: ZXing::QRCode::Encoder::ByteMatrix

Defined in:
lib/zxing/qrcode/encoder/byte_matrix.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nativeObject (readonly)

Returns the value of attribute native.



14
15
16
# File 'lib/zxing/qrcode/encoder/byte_matrix.rb', line 14

def native
  @native
end

Class Method Details

.new(*args) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/zxing/qrcode/encoder/byte_matrix.rb', line 6

def self.new *args
  if self == ZXing::QRCode::Encoder::ByteMatrix
    ZXing::FFI::QRCode::Encoder::ByteMatrix.new(*args)
  else
    super
  end
end

Instance Method Details

#initialize(native) ⇒ Object



15
16
17
# File 'lib/zxing/qrcode/encoder/byte_matrix.rb', line 15

def initialize native
  @native = native
end