class Pry::CommandSet
def desc(search, description = nil)
- Example: Getting -
Example: Setting -
Parameters:
-
description
(String?
) -- (nil) The command description. -
search
(String, Regexp
) -- The command match.
def desc(search, description = nil) cmd = find_command_by_match_or_listing(search) return cmd.description unless description cmd.description = description end