Class: Qt::MetaObject
Instance Method Summary collapse
Instance Method Details
permalink #each_method ⇒ Object
[View source]
613 614 615 616 617 618 |
# File 'lib/ruber/qt_sugar.rb', line 613 def each_method if block_given? method_count.times{|i| yield method i} else self.enum_for(:each_method) end end |
permalink #each_signal ⇒ Object
[View source]
593 594 595 596 597 598 599 600 601 |
# File 'lib/ruber/qt_sugar.rb', line 593 def each_signal if block_given? method_count.times do |i| m = method i yield m if m.method_type == Qt::MetaMethod::Signal end else self.enum_for(:each_signal) end end |
permalink #each_slot ⇒ Object
[View source]
603 604 605 606 607 608 609 610 611 |
# File 'lib/ruber/qt_sugar.rb', line 603 def each_slot if block_given? method_count.times do |i| m = method i yield m if m.method_type == Qt::MetaMethod::Slot end else self.enum_for(:each_slot) end end |