Class: Qt::ByteArray

Inherits:
Object show all
Defined in:
lib/rui/toolkits/qtbase/qt.rb

Class Method Summary collapse

Class Method Details

.from_hex(str) ⇒ Object



32
33
34
# File 'lib/rui/toolkits/qtbase/qt.rb', line 32

def self.from_hex(str)
  new([str.gsub(/\W+/, '')].pack('H*'))
end