Module: Earthquake::Help
- Included in:
- Earthquake
- Defined in:
- lib/earthquake/help.rb
Instance Method Summary collapse
Instance Method Details
#help(name, summary, usage = nil) ⇒ Object
7 8 9 |
# File 'lib/earthquake/help.rb', line 7 def help(name, summary, usage = nil) helps[name] = summary, usage ? usage.trim_indent : nil end |
#helps ⇒ Object
3 4 5 |
# File 'lib/earthquake/help.rb', line 3 def helps @helps ||= {} end |