Class: Qt::MethodInvocation
Instance Method Summary collapse
-
#initialize(target, method, signature) ⇒ MethodInvocation
constructor
A new instance of MethodInvocation.
- #invoke(*args) ⇒ Object
Constructor Details
#initialize(target, method, signature) ⇒ MethodInvocation
Returns a new instance of MethodInvocation.
2489 2490 2491 2492 2493 2494 2495 2496 2497 |
# File 'lib/Qt/qtruby4.rb', line 2489 def initialize(target, method, signature) super(target) if .indexOfSlot(signature) == -1 self.class.slots signature end @target = target method = method.intern unless method.is_a?Symbol @method = method end |
Instance Method Details
#invoke(*args) ⇒ Object
2499 2500 2501 |
# File 'lib/Qt/qtruby4.rb', line 2499 def invoke(*args) @target.send @method, *args end |