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