peeky 0.0.47 → 0.0.48
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/peeky/class_info.rb +7 -1
- data/lib/peeky/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b101eb2cf5f68f0a26a46579ddc1b87df3f8b2edbfefa9aa8301a8efe1b6f44a
|
4
|
+
data.tar.gz: 56e16cec9351212f107137cb1efda57c0221a8ffac84945b36a51231f66536c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bef9b277830666604a788bdc0f1dc242b5d58c15d1c44d83a58ad559fc883d6888b1fbfde996514af27b4e90729d65a69c5b49ce81df7c79685ce89f7d953b1
|
7
|
+
data.tar.gz: 8c650d21456723d845c994d117a30ca9a6dcb5dbc26bb35a12b50bf33805f4ba863f8de665b8265a0d58cf5ee1eb17f2aa035b00c3ba1044624661becc6e24c9
|
data/lib/peeky/class_info.rb
CHANGED
@@ -86,7 +86,13 @@ module Peeky
|
|
86
86
|
|
87
87
|
# Module name
|
88
88
|
def module_name
|
89
|
-
@module_name
|
89
|
+
return @module_name if defined? @module_name
|
90
|
+
|
91
|
+
@module_name = if class_full_name.include?('::')
|
92
|
+
class_full_name.to_s.gsub(/(.*)::.*/, '\1')
|
93
|
+
else
|
94
|
+
''
|
95
|
+
end
|
90
96
|
end
|
91
97
|
|
92
98
|
# Get a list of :attr_accessor on the class
|
data/lib/peeky/version.rb
CHANGED