From b9eb342c845972ae842201f686ed19491f5c7dfe Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Fri, 1 Mar 2024 16:18:27 -0300 Subject: [PATCH] Define BSD::Control::Feature#set! as private --- ext/hbsdctl.rb/hbsdctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/hbsdctl.rb/hbsdctl.c b/ext/hbsdctl.rb/hbsdctl.c index c39faa6..e0f31fd 100644 --- a/ext/hbsdctl.rb/hbsdctl.c +++ b/ext/hbsdctl.rb/hbsdctl.c @@ -74,5 +74,5 @@ Init_hbsdctl(void) rb_define_const(rb_mControl, "Enable", INT2NUM(1)); rb_define_singleton_method(rb_mFFI, "available_features", ffi_available_features, 0); rb_define_singleton_method(rb_mFFI, "library_version", ffi_library_version, 0); - rb_define_method(rb_cFeature, "set!", feature_set, 2); + rb_define_private_method(rb_cFeature, "set!", feature_set, 2); }