Class: Qt::ByteArray

Inherits:
Base show all
Defined in:
lib/Qt/qtruby4.rb

Instance Method Summary collapse

Methods inherited from Base

#%, #&, #*, #**, #+, #-, #-@, #/, #<, #<<, #<=, #==, #>, #>=, #>>, #QCOMPARE, #QEXPECT_FAIL, #QFAIL, #QSKIP, #QTEST, #QVERIFY, #QVERIFY2, #QWARN, #^, ancestors, #is_a?, #methods, private_slots, #protected_methods, #public_methods, q_classinfo, q_signal, q_slot, signals, #singleton_methods, slots, #|, #~

Constructor Details

#initialize(*args) ⇒ ByteArray

Returns a new instance of ByteArray.



512
513
514
515
516
517
518
# File 'lib/Qt/qtruby4.rb', line 512

def initialize(*args)
  if args.size == 1 && args[0].kind_of?(String)
    super(args[0], args[0].size)
  else
    super
  end
end

Instance Method Details

#chop(*args) ⇒ Object



532
533
534
# File 'lib/Qt/qtruby4.rb', line 532

def chop(*args)
  method_missing(:chop, *args)
end

#split(*args) ⇒ Object



536
537
538
# File 'lib/Qt/qtruby4.rb', line 536

def split(*args)
  method_missing(:split, *args)
end

#to_fObject



528
529
530
# File 'lib/Qt/qtruby4.rb', line 528

def to_f
  return toDouble()
end

#to_iObject



524
525
526
# File 'lib/Qt/qtruby4.rb', line 524

def to_i
  return toInt()
end

#to_sObject



520
521
522
# File 'lib/Qt/qtruby4.rb', line 520

def to_s
  return constData()
end