Sha256: 0d1c994d3adf6aa70a80ec66d1dae49964f5d03e51194bbef884d20fd8bf9dfd
Contents?: true
Size: 332 Bytes
Versions: 18
Compression:
Stored size: 332 Bytes
Contents
module RSpecCandy module Helpers module DisposableCopy def disposable_copy(&body) this = self copy = Class.new(self) copy.singleton_class.send(:define_method, :name) { this.name } copy.class_eval(&body) if body copy end Class.send(:include, self) end end end
Version data entries
18 entries across 18 versions & 1 rubygems