diff options
Diffstat (limited to 'lib/irb/cmd/ls.rb')
-rw-r--r-- | lib/irb/cmd/ls.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/irb/cmd/ls.rb b/lib/irb/cmd/ls.rb index 735bf17241..b65fae2bf1 100644 --- a/lib/irb/cmd/ls.rb +++ b/lib/irb/cmd/ls.rb @@ -9,6 +9,9 @@ module IRB module ExtendCommand class Ls < Nop + category "Context" + description "Show methods, constants, and variables. `-g [query]` or `-G [query]` allows you to filter out the output." + def self.transform_args(args) if match = args&.match(/\A(?<args>.+\s|)(-g|-G)\s+(?<grep>[^\s]+)\s*\n\z/) args = match[:args] |