Sha256: 9573bcb316361764ea9e68c2f0778a7b4ebe505d1ec7d74d2c1b757f0ad75012
Contents?: true
Size: 574 Bytes
Versions: 3
Compression:
Stored size: 574 Bytes
Contents
require 'test/unit' require 'rubygems' require 'mocha' class Class def publicize_instance_methods saved_private_instance_methods = self.private_instance_methods self.class_eval { public(*saved_private_instance_methods) } yield self.class_eval { private(*saved_private_instance_methods) } end def publicize_class_methods saved_private_class_methods = self.private_methods(false) self.class_eval { public_class_method(*saved_private_class_methods) } yield self.class_eval { private_class_method(*saved_private_class_methods) } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
efax-1.3.2 | test/test_helper.rb |
efax-1.2.1 | test/test_helper.rb |
efax-1.2.0 | test/test_helper.rb |