dissociated_introspection 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0021d4dc41e774aaf25d008a3591f36b3daa4576
|
4
|
+
data.tar.gz: 6eafb05c95b70f617e6788b467543d2085895dd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e192e215ce2db57d866b447a4120a7e36934b6e5ab5d102cb823c747bf5c88c0d041202198b26a1a2af54ae81b6846abbe6ab8ae2b373fd5f841a69219599ba9
|
7
|
+
data.tar.gz: 6c2a90ecb664436df2a84b0e403e012b67f220ae831e0bb0a757d618e2c933b0bca1bfffe434eea64ddd4b5117d4d9ad85cad69891c3978d285f6a81440b5c80
|
@@ -71,6 +71,14 @@ module DissociatedIntrospection
|
|
71
71
|
end
|
72
72
|
end
|
73
73
|
|
74
|
+
def inspect_methods(type=:instance_methods)
|
75
|
+
public_send(if type == :instance_methods
|
76
|
+
:defs
|
77
|
+
elsif [:methods, :class_methods].include?(type)
|
78
|
+
:class_defs
|
79
|
+
end)
|
80
|
+
end
|
81
|
+
|
74
82
|
def class_begin
|
75
83
|
find_class.children.find { |n| n.try(:type) == :begin } || find_class
|
76
84
|
end
|
@@ -8,6 +8,7 @@ require 'dissociated_introspection/ruby_code'
|
|
8
8
|
require 'dissociated_introspection/ruby_class'
|
9
9
|
require 'dissociated_introspection/ruby_class/def'
|
10
10
|
require 'dissociated_introspection/inspection'
|
11
|
+
require 'dissociated_introspection/method_call'
|
11
12
|
|
12
13
|
module DissociatedIntrospection
|
13
14
|
LISTEN_TO_CLASS_METHODS = [
|