Sha256: 4f0c0d83171c66465dd8d877d3d5c6a4f21378889eabf66076604f4a1d3696ed
Contents?: true
Size: 786 Bytes
Versions: 37
Compression:
Stored size: 786 Bytes
Contents
require "test/unit" require "rubygems" require 'autotest' require "mocha" require File.dirname(__FILE__) + '/../lib/autotest_notification' unless defined?(AutotestNotification) class Test::Unit::TestCase def turn_methods_public(classe, method_name = nil) if method_name classe.class_eval do public method_name end else turn_all_methods_public classe end end def turn_all_methods_public(classe) classe.class_eval do private_instance_methods.each { |instance_method| public instance_method } private_methods.each { |method| public_class_method method } protected_instance_methods.each { |instance_method| public instance_method } protected_methods.each { |method| public_class_method method } end end end
Version data entries
37 entries across 37 versions & 9 rubygems