Class: Qt::ByteArray

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

Instance Method Summary collapse

Methods inherited from Base

#%, #&, #*, #**, #+, #-, #[email protected], #/, #<, #<<, #<=, #==, #>, #>=, #>>, #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


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

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


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

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

#split(*args) ⇒ Object


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

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

#to_fObject


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

def to_f
  return toDouble()
end

#to_iObject


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

def to_i
  return toInt()
end

#to_sObject


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

def to_s
  return constData()
end