Sha256: 28b130385dff1773ac632c79763947e6f5a3a11ec228080d9d754a0262ba7358
Contents?: true
Size: 241 Bytes
Versions: 3
Compression:
Stored size: 241 Bytes
Contents
module Bogus class MakesSubtypes extend Bogus::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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bogus-0.0.4 | lib/bogus/makes_subtypes.rb |
bogus-0.0.3 | lib/bogus/makes_subtypes.rb |
bogus-0.0.3.rc.2 | lib/bogus/makes_subtypes.rb |