inclusion 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/inclusion/inclusion.rb +2 -2
- 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: e41b8c530a29f4ee3dc22571e1b5c3d2cbc29d22
|
4
|
+
data.tar.gz: cd6cd5eae82e26ca3dbf7dd0d76717b3c2aeda66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40e34e1e721f9956ed0feb22a65a8158dbd635b4c412741573cf0992ef784e4d922508e8ea82a25a6db965377ea9e8a1d97e79c87552049e911252182fad8611
|
7
|
+
data.tar.gz: dda875796d0a2a26868780cc5539e18571eb7cb8f6113cacc952ed77bb8b127b87ca7b726ae998d62d6ae6285f883c148d0a664de3308bdba6c3a1946bddf805
|
data/lib/inclusion/inclusion.rb
CHANGED
@@ -7,13 +7,13 @@ class Inclusion
|
|
7
7
|
@obj_const ||= ([Module, Class].include?(obj.class) ? obj : obj.class)
|
8
8
|
end
|
9
9
|
|
10
|
-
def initialize(obj, inclusion_names, search_ancestors:
|
10
|
+
def initialize(obj, inclusion_names, search_ancestors: true)
|
11
11
|
@obj = obj
|
12
12
|
@inclusion_names = inclusion_names
|
13
13
|
@search_ancestors = search_ancestors
|
14
14
|
end
|
15
15
|
|
16
|
-
def self.!(obj, *inclusion_names, search_ancestors:
|
16
|
+
def self.!(obj, *inclusion_names, search_ancestors: true)
|
17
17
|
new(obj, inclusion_names, search_ancestors: search_ancestors).!
|
18
18
|
end
|
19
19
|
|