Skip to content

Commit a5a2337

Browse files
authored
Pass symbol to Command.register in doc for consistency (#935)
1 parent d167ea0 commit a5a2337

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EXTEND_IRB.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Greet < IRB::Command::Base
3131
end
3232
end
3333

34-
IRB::Command.register("greet", Greet)
34+
IRB::Command.register(:greet, Greet)
3535
```
3636

3737
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.

0 commit comments

Comments
 (0)