Class: Rootage::TextHelp

Inherits:
Help
  • Object
show all
Defined in:
lib/rootage/help.rb

Constant Summary

Constants inherited from Help

Help::FORMAT

Instance Attribute Summary

Attributes inherited from Help

#cmd

Instance Method Summary collapse

Methods inherited from Help

find, #initialize, register

Constructor Details

This class inherits a constructor from Rootage::Help

Instance Method Details

#to_sObject



115
116
117
118
# File 'lib/rootage/help.rb', line 115

def to_s
  src = File.read(File.join(File.dirname(__FILE__), "help.txt.erb"))
  ERB.new(src, nil, "-").result(binding)
end