looksee 4.4.0 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/ext/rbx/rbx.c DELETED
@@ -1,4 +0,0 @@
1
- #include "ruby.h"
2
-
3
- void Init_rbx(void) {
4
- }
@@ -1,25 +0,0 @@
1
- require 'looksee/adapter/base'
2
- require 'looksee/rbx'
3
-
4
- module Looksee
5
- module Adapter
6
- class Rubinius < Base
7
- def internal_undefined_instance_methods(mod)
8
- return [] if !mod.origin.equal?(mod)
9
- names = []
10
- mod.method_table.entries.each do |(name, method, visibility)|
11
- names << name if visibility.equal?(:undef)
12
- end
13
- names
14
- end
15
-
16
- def singleton_instance(singleton_class)
17
- if Class === singleton_class && (instance = ::Rubinius::Type.singleton_class_object(singleton_class))
18
- instance
19
- else
20
- nil
21
- end
22
- end
23
- end
24
- end
25
- end
Binary file