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.



492
493
494
495
496
497
498
# File 'lib/Qt/qtruby4.rb', line 492

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



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

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

#split(*args) ⇒ Object



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

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

#to_fObject



508
509
510
# File 'lib/Qt/qtruby4.rb', line 508

def to_f
	return toDouble()
end

#to_iObject



504
505
506
# File 'lib/Qt/qtruby4.rb', line 504

def to_i
	return toInt()
end

#to_sObject



500
501
502
# File 'lib/Qt/qtruby4.rb', line 500

def to_s
	return constData()
end