Class: System::Type
Instance Method Summary collapse
-
#collect_interface_methods ⇒ Object
collects all the methods defined on an interface and its parents.
-
#collect_interface_properties ⇒ Object
collects the properties defined on an interface an its parents.
Instance Method Details
#collect_interface_methods ⇒ Object
collects all the methods defined on an interface and its parents
6 7 8 9 10 |
# File 'lib/core_ext/system/type.rb', line 6 def collect_interface_methods iface_methods = [] iface_methods += self.get_interfaces.collect { |t| t.collect_interface_methods } self.get_methods + iface_methods.flatten end |
#collect_interface_properties ⇒ Object
collects the properties defined on an interface an its parents
13 14 15 16 17 |
# File 'lib/core_ext/system/type.rb', line 13 def collect_interface_properties iface_properties = [] iface_properties += self.get_interfaces.collect { |t| t.collect_interface_properties } self.get_properties + iface_properties.flatten end |