Sha256: 0e8013fc3b3ce62198e09f75c2f0cca4f996eac596534832aff47462d42f9582
Contents?: true
Size: 234 Bytes
Versions: 8
Compression:
Stored size: 234 Bytes
Contents
module Bogus class MakesSubtypes extend Takes takes :copies_methods def make(klass) subtype = klass.is_a?(Class) ? Class.new : Module.new copies_methods.copy(klass, subtype) subtype end end end
Version data entries
8 entries across 8 versions & 1 rubygems