From a5a233763691b938bc709991ce9269a80e8df226 Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Sat, 27 Apr 2024 05:10:31 +0800 Subject: [PATCH] Pass symbol to Command.register in doc for consistency (#935) --- EXTEND_IRB.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EXTEND_IRB.md b/EXTEND_IRB.md index 7b63c83f2..e5bc4a155 100644 --- a/EXTEND_IRB.md +++ b/EXTEND_IRB.md @@ -31,7 +31,7 @@ class Greet < IRB::Command::Base end end -IRB::Command.register("greet", Greet) +IRB::Command.register(:greet, Greet) ``` As long as the above code is loaded before the IRB session is started, such as in a loaded library or a user's `.irbrc` file, `greet` will be accessible to the user.