Class: GLib::Type

Inherits:
Object
  • Object
show all
Defined in:
lib/glib2.rb

Instance Method Summary collapse

Instance Method Details

#ancestorsObject



194
195
196
197
# File 'lib/glib2.rb', line 194

def ancestors
  #  ([self] + interfaces + (parent ? parent.ancestors : [])).reverse.uniq.reverse
  [self] + (parent ? parent.ancestors : [])
end

#descendantsObject



190
191
192
# File 'lib/glib2.rb', line 190

def descendants
  [self] + children.map{|t| t.descendants }.flatten
end