Class: Qt::BlockInvocation
Instance Method Summary collapse
-
#initialize(target, block, signature) ⇒ BlockInvocation
constructor
A new instance of BlockInvocation.
- #invoke(*args) ⇒ Object
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(target, block, signature) ⇒ BlockInvocation
Returns a new instance of BlockInvocation.
2432 2433 2434 2435 2436 2437 2438 |
# File 'lib/Qt/qtruby4.rb', line 2432 def initialize(target, block, signature) super(target) if .indexOfSlot(signature) == -1 self.class.slots signature end @block = block end |
Instance Method Details
#invoke(*args) ⇒ Object
2440 2441 2442 |
# File 'lib/Qt/qtruby4.rb', line 2440 def invoke(*args) @block.call(*args) end |