Class: WhatTheGem::Help

Inherits:
Command show all
Defined in:
lib/whatthegem/help.rb

Constant Summary collapse

TEMPLATE =
Template.parse(<<~HELP)
  `whatthegem` is a small tool for fetching information about Ruby gems from various sources.

  **Usage:** `whatthegem <gemname> [<command>]`

  Known commands:

  {% for command in commands %}
  * `{{command.handle}}`: {{command.description}}{% endfor %}
HELP

Constants inherited from Command

Command::HEADER_TEMPLATE

Instance Attribute Summary

Attributes inherited from Command

#gem

Instance Method Summary collapse

Methods inherited from Command

call, #call, get, #meta, register

Constructor Details

#initializeHelp

Returns a new instance of Help.



14
15
# File 'lib/whatthegem/help.rb', line 14

def initialize(*)
end

Instance Method Details

#localsObject



17
18
19
# File 'lib/whatthegem/help.rb', line 17

def locals
  {commands: commands}
end