class GLib::Type - glib2-3.1.8 Documentation

# class GLib::Type

### Public Instance Methods

ancestors() click to toggle source

    # File lib/glib2.rb, line 156
    def ancestors
      #  ([self] + interfaces + (parent ? parent.ancestors : [])).reverse.uniq.reverse
      [self] + (parent ? parent.ancestors : [])
    end

decendants() click to toggle source

    # File lib/glib2.rb, line 152
    def decendants
      [self] + children.map{|t| t.decendants }.flatten
    end