Sha256: b1edff7eb78901c638fdd2cac46cd7721f45f6666cce3e8eafa3dc1122446849
Contents?: true
Size: 594 Bytes
Versions: 1
Compression:
Stored size: 594 Bytes
Contents
require File.dirname(__FILE__) + '/lib/highrise' 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kmayer-highrise-0.7.0 | spec_helper.rb |