Sha256: 2775e64224a7f61090ca9da2ec4cdfb0925cbc9170e68b8b0182ec4cfbfcb7f3

Contents?: true

Size: 224 Bytes

Versions: 10

Compression:

Stored size: 224 Bytes

Contents

class Module

  # Is a given class or module an ancestor of
  # this class or module?
  #
  #  class X ; end
  #  class Y < X ; end
  #
  #   X.ancestor?(Y)
  #
  def ancestor?( mod )
    ancestors.include?(mod)
  end

end

Version data entries

10 entries across 9 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 lib/core/facets/module/ancestor.rb
facets-3.1.0 lib/core/facets/module/ancestor.rb
facets-3.0.0 lib/core/facets/module/ancestor.rb
facets-2.9.3 lib/core/facets/module/ancestor.rb
facets-2.9.2 lib/core/facets/module/ancestor.rb
facets-2.9.2 src/core/facets/module/ancestor.rb
facets-2.9.1 lib/core/facets/module/ancestor.rb
facets-2.9.0 lib/core/facets/module/ancestor.rb
facets-2.9.0.pre.2 lib/core/facets/module/ancestor.rb
facets-2.9.0.pre.1 lib/core/facets/module/ancestor.rb