Sha256: 93eaeb51f98cc37c88626f76b054fc4f2c5f3a7f80149f3b5f767b63f8d9a82a
Contents?: true
Size: 603 Bytes
Versions: 1
Compression:
Stored size: 603 Bytes
Contents
require 'test/unit' require 'mocha' require File.dirname(__FILE__) + '/../lib/efax' 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
drnic-ruby-efax-1.0.0 | test/test_helper.rb |