Class: WhatTheGem::Help

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

Constant Summary collapse

TEMPLATE =
Template.parse("`whatthegem` is a small tool for fetching information about Ruby gems from various sources.\n\n**Usage:** `whatthegem <gemname> [<command>]`\n\nKnown commands:\n\n{% for command in commands %}\n* `{{command.handle}}`: {{command.description}}{% endfor %}\n")

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