From 3b8dd9107ae8c379d6baf877153c63e4cd4bfc63 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Tue, 25 Jun 2024 00:42:37 -0300 Subject: [PATCH] Alias in_capability_mode? as capability_mode? --- lib/capsicum.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/capsicum.rb b/lib/capsicum.rb index 7a66e03..c0d80d8 100644 --- a/lib/capsicum.rb +++ b/lib/capsicum.rb @@ -3,7 +3,7 @@ module Capsicum require_relative "capsicum/version" require_relative "capsicum/libc" - module_function + extend self ## # Check if we're in capability mode. @@ -25,6 +25,7 @@ module Capsicum ensure uintp.call_free end + alias_method :capability_mode?, :in_capability_mode? ## # Enter capability mode