Class: GLib::Type
- Inherits:
-
Object
- Object
- GLib::Type
- Defined in:
- glib2/lib/glib2.rb
Instance Method Summary collapse
Instance Method Details
#ancestors ⇒ Object
194 195 196 197 |
# File 'glib2/lib/glib2.rb', line 194 def ancestors # ([self] + interfaces + (parent ? parent.ancestors : [])).reverse.uniq.reverse [self] + (parent ? parent.ancestors : []) end |
#descendants ⇒ Object
190 191 192 |
# File 'glib2/lib/glib2.rb', line 190 def descendants [self] + children.map{|t| t.descendants }.flatten end |