rolistic 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rolistic/class_methods.rb +2 -1
- data/lib/rolistic/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: 76c03ece2348ff3459a5a43e7d45adf0eeb2493f
|
4
|
+
data.tar.gz: 4509a6f3c5c0768d03b76b8be9fa753d70e90d35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea490af5effae8a0722378a75e25876164b96d1e15da6380babb0df8705e11bdffd39cb720e475dde06c2bd5533112ae068cb80c6bc5be6c7fd4cc0f5132cdd6
|
7
|
+
data.tar.gz: 95bf731807c0e34535fda73797e68fbcaf98f7e0650349e77446966fcb4560dadb5caa2158efcebd39a71a7de16fc60fe569f3a9d9f2e9ddbf3b9cc88b002697
|
@@ -25,7 +25,7 @@ module Rolistic
|
|
25
25
|
|
26
26
|
def traits_map
|
27
27
|
return @traits_map if defined?(@traits_map)
|
28
|
-
@traits_map = {
|
28
|
+
@traits_map = {}
|
29
29
|
end
|
30
30
|
|
31
31
|
def abilities_for(name)
|
@@ -44,6 +44,7 @@ module Rolistic
|
|
44
44
|
def role(name, *traits_and_abilities, **options)
|
45
45
|
abilities = traits_and_abilities.reduce([]) do |m, t_or_a|
|
46
46
|
case t_or_a
|
47
|
+
when :everything then Everything
|
47
48
|
when Symbol then m + abilities_for_trait(t_or_a)
|
48
49
|
when Array then m + t_or_a
|
49
50
|
else t_or_a
|
data/lib/rolistic/version.rb
CHANGED