APIdock / Ruby
/
method

undef_system_command

ruby latest stable - Class: Shell ::CommandProcessor
undef_system_command(command)
public

Undefines a command

# File lib/shell/command-processor.rb, line 414
 def self.undef_system_command(command)
 command = command.id2name if command.kind_of?(Symbol)
 remove_method(command)
 Shell.module_eval{remove_method(command)}
 Filter.module_eval{remove_method(command)}
 self
 end

AltStyle によって変換されたページ (->オリジナル) /