Class: CmdHelp
- Inherits:
-
Rumodule
- Object
- RumoduleCommon
- Rumodule
- CmdHelp
- Defined in:
- bin/rumodule
Overview
Help command.
Constant Summary
Constant Summary
Constants included from Utility
Utility::LOADED, Utility::MODULEDIRS, Utility::RUMODULE_PUSH, Utility::SUBLOADED, Utility::SYSLOADED
Constants inherited from RumoduleCommon
Instance Method Summary (collapse)
Methods inherited from Rumodule
#_is_loaded, #_output, flush, #getenvar, run
Methods included from Utility
#abort, #all_loaded, #commonHelp, #error, #findModule, #help, #loadModule, #loaded, #registerModule, #sys_loaded, #unregisterModule, #usage, #warning
Methods included from RumoduleMod
Instance Method Details
- (Object) action(mod = nil)
747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 |
# File 'bin/rumodule', line 747 def action( mod = nil ) if mod begin # Override dummy help method. self.class.send( :define_method, :help, lambda { |str| usage( str ) } ) loadModule( mod ) rescue STDERR.puts "No help provided!" end else commonHelp end end |