Sha256: 4ed1a83c5b866668b81a0c30f52670b626bdf837861bdc8d593d683ee897f1f5

Contents?: true

Size: 223 Bytes

Versions: 10

Compression:

Stored size: 223 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 10 versions & 1 rubygems

Version Path
facets-2.8.4 lib/core/facets/module/ancestor.rb
facets-2.8.3 lib/core/facets/module/ancestor.rb
facets-2.8.2 lib/core/facets/module/ancestor.rb
facets-2.8.1 lib/core/facets/module/ancestor.rb
facets-2.8.0 lib/core/facets/module/ancestor.rb
facets-2.7.0 lib/core/facets/module/ancestor.rb
facets-2.6.0 lib/core/facets/module/ancestor.rb
facets-2.5.1 lib/core/facets/module/ancestor.rb
facets-2.5.0 lib/core/facets/module/ancestor.rb
facets-2.5.2 lib/core/facets/module/ancestor.rb