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.



503
504
505
506
507
508
509
# File 'lib/Qt/qtruby4.rb', line 503

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



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

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

#split(*args) ⇒ Object



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

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

#to_fObject



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

def to_f
  return toDouble()
end

#to_iObject



515
516
517
# File 'lib/Qt/qtruby4.rb', line 515

def to_i
  return toInt()
end

#to_sObject



511
512
513
# File 'lib/Qt/qtruby4.rb', line 511

def to_s
  return constData()
end