Skip to content

Commit de4b644

Browse files
committed
C++ static member functions map to Ruby singleton functions.
1 parent a345d63 commit de4b644

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rice/native_registry.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ def native_methods(klass)
88
self.native_by_kind(klass, [Rice::NativeKind::Method])
99
end
1010

11-
def native_functions(klass)
12-
self.native_by_kind(klass, [Rice::NativeKind::Function])
11+
def native_singleton_functions(klass)
12+
self.native_by_kind(klass.singleton_class, [Rice::NativeKind::Function])
1313
end
1414

1515
def native_by_kind(klass, kinds)

0 commit comments

Comments
 (0)