-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfind_missing_entries.rb
More file actions
executable file
·73 lines (70 loc) · 1.1 KB
/
find_missing_entries.rb
File metadata and controls
executable file
·73 lines (70 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/usr/bin/env ruby
require 'open3'
built_in_klasses = [
BasicObject,
Object,
# ARGF.class,
Array,
Binding,
# ConditionVariable,
# Data,
Dir,
Encoding,
Encoding::Converter,
Enumerator,
Enumerator::Lazy,
FalseClass,
Fiber,
File::Stat,
Hash,
IO,
File,
MatchData,
Method,
Module,
Class,
# Mutex,
NilClass,
Numeric,
Complex,
Float,
Integer,
Bignum,
Fixnum,
Rational,
ObjectSpace::WeakMap,
Proc,
Process::Status,
# Queue,
Random,
Range,
Regexp,
RubyVM,
RubyVM::InstructionSequence,
# SizedQueue,
String,
Struct,
Struct::Tms,
Symbol,
Thread,
Thread::Backtrace::Location,
Thread::ConditionVariable,
Thread::Mutex,
Thread::Queue,
Thread::SizedQueue,
ThreadGroup,
Time,
TracePoint,
TrueClass,
UnboundMethod
]
built_in_klasses.each do |klass|
$stderr.puts klass
klass.instance_methods(false).each do |method|
m = klass.instance_method(method)
o, s = Open3.capture2e('refe', "#{m.owner}##{method}")
unless s.success? && !o.include?('no such method')
puts "#{m.owner}##{method}"
end
end
end