We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1dcab43 + 26e139e commit 1991874Copy full SHA for 1991874
class.go
@@ -14,7 +14,7 @@ func RbDefineModule(name string) VALUE {
14
return VALUE(C.rb_define_module(goString2Char(name)))
15
}
16
17
-// RbDefineSingletonMethod define singleton method
+// RbDefineSingletonMethod calls `rb_define_singleton_method` in C
18
func RbDefineSingletonMethod(klass VALUE, name string, fun unsafe.Pointer, args int) {
19
cname := goString2Char(name)
20
C.rb_define_singleton_method(C.VALUE(klass), cname, (*[0]byte)(fun), C.int(args))
0 commit comments