attach_function 0.2.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/attach_function.rb +1 -1
- data/lib/attach_function/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d92091a116f93b0ba3b1d0d9b85c369b985e7b90
|
|
4
|
+
data.tar.gz: de5c90cd1b38d96254d626fbd35a3f49ddb964ba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ef6b1b4edbaec873c662e055bdfb4b86ab67c7f0d45777ba09c9db0fe22a19a514d88b3327892c400fb185f0fc93406f782869007b2621f15af664f45956dd28
|
|
7
|
+
data.tar.gz: 8782bd5f60c1c3e1d2358338a46fb631f307205e9fe27c4b965832880ff29f0b1243b240ac9977f7efaca4fa94cd23677c88d3c8f412c0e16fda8f558a6999d8
|
data/lib/attach_function.rb
CHANGED
|
@@ -64,7 +64,7 @@ module AttachFunction
|
|
|
64
64
|
|
|
65
65
|
#Attaches all uninherited (by default, pass true to change that) public class methods
|
|
66
66
|
#of the enclosing module or of Object
|
|
67
|
-
def attach_outer_class_methods(inherited = false)
|
|
67
|
+
def attach_outer_class_methods!(inherited = false)
|
|
68
68
|
outer_module = Object.const_get(outer_module_name(name))
|
|
69
69
|
outer_module.methods(inherited).each do |m|
|
|
70
70
|
attach_function m
|