projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update puppetlabs/stdlib module
[mirror/dsa-puppet.git]
/
3rdparty
/
modules
/
stdlib
/
spec
/
monkey_patches
/
publicize_methods.rb
diff --git
a/3rdparty/modules/stdlib/spec/monkey_patches/publicize_methods.rb
b/3rdparty/modules/stdlib/spec/monkey_patches/publicize_methods.rb
old mode 100755
(executable)
new mode 100644
(file)
index
3ae59f9
..
70cf4f0
--- a/
3rdparty/modules/stdlib/spec/monkey_patches/publicize_methods.rb
+++ b/
3rdparty/modules/stdlib/spec/monkey_patches/publicize_methods.rb
@@
-1,11
+1,10
@@
-#! /usr/bin/env ruby -S rspec
# Some monkey-patching to allow us to test private methods.
class Class
# Some monkey-patching to allow us to test private methods.
class Class
-
def publicize_methods(*methods)
-
saved_private_instance_methods = methods.empty? ? self.
private_instance_methods : methods
+ def publicize_methods(*methods)
+
saved_private_instance_methods = methods.empty? ?
private_instance_methods : methods
-
self.
class_eval { public(*saved_private_instance_methods) }
-
yield
-
self.
class_eval { private(*saved_private_instance_methods) }
-
end
+ class_eval { public(*saved_private_instance_methods) }
+ yield
+ class_eval { private(*saved_private_instance_methods) }
+ end
end
end