Sha256: 5e41a520fc9325e324fdfdbba52643ba466eeb976094960ccecc0c1ca158d642

Contents?: true

Size: 622 Bytes

Versions: 5

Compression:

Stored size: 622 Bytes

Contents

require 'test/unit'
require 'rubygems'
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

5 entries across 5 versions & 3 rubygems

Version Path
drnic-ruby-efax-1.0.1 test/test_helper.rb
drnic-ruby-efax-1.1.0 test/test_helper.rb
drnic-ruby-efax-1.1.1 test/test_helper.rb
szimek-ruby-efax-1.1.1 test/test_helper.rb
efax-1.1.1 test/test_helper.rb