Skip to content

Commit

Permalink
Pass symbol to Command.register in doc for consistency (#935)
Browse files Browse the repository at this point in the history
  • Loading branch information
st0012 authored Apr 26, 2024
1 parent d167ea0 commit a5a2337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EXTEND_IRB.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a5a2337

Please sign in to comment.