Skip to content

Commit 48523da

Browse files
committed
Follow the usual naming rule for singleton methods
1 parent c755f35 commit 48523da

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

namespace.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ namespace_initialize(VALUE namespace)
439439
* Returns +true+ if namespace is enabled.
440440
*/
441441
static VALUE
442-
rb_namespace_s_getenabled(VALUE namespace)
442+
rb_namespace_s_getenabled(VALUE recv)
443443
{
444444
return RBOOL(rb_namespace_available());
445445
}
@@ -453,7 +453,7 @@ rb_namespace_s_getenabled(VALUE namespace)
453453
* Returns +false+ if namespace is not enabled.
454454
*/
455455
static VALUE
456-
rb_namespace_current(VALUE klass)
456+
rb_namespace_s_current(VALUE recv)
457457
{
458458
const rb_namespace_t *ns;
459459

@@ -472,7 +472,7 @@ rb_namespace_current(VALUE klass)
472472
* Returns +true+ if +klass+ is only in a user namespace.
473473
*/
474474
static VALUE
475-
rb_namespace_s_is_builtin_p(VALUE namespace, VALUE klass)
475+
rb_namespace_s_is_builtin_p(VALUE recv, VALUE klass)
476476
{
477477
if (RCLASS_PRIME_CLASSEXT_READABLE_P(klass) && !RCLASS_PRIME_CLASSEXT_WRITABLE_P(klass))
478478
return Qtrue;
@@ -982,7 +982,7 @@ Init_Namespace(void)
982982
}
983983

984984
rb_define_singleton_method(rb_cNamespace, "enabled?", rb_namespace_s_getenabled, 0);
985-
rb_define_singleton_method(rb_cNamespace, "current", rb_namespace_current, 0);
985+
rb_define_singleton_method(rb_cNamespace, "current", rb_namespace_s_current, 0);
986986
rb_define_singleton_method(rb_cNamespace, "is_builtin?", rb_namespace_s_is_builtin_p, 1);
987987

988988
rb_define_method(rb_cNamespace, "load_path", rb_namespace_load_path, 0);

0 commit comments

Comments
 (0)