class Pry::CommandSet
def import_from(set, *matches)
-
(Pry::CommandSet)
- Returns the reciever (a command set).
Parameters:
-
matches
(Array
) -- Commands to import -
set
(CommandSet
) -- Set to import commands from
def import_from(set, *matches) helper_module.send :include, set.helper_module matches.each do |match| cmd = set.find_command_by_match_or_listing(match) @commands[cmd.match] = cmd end self end