Class: Rpub::Commands::Help

Inherits:
Base
  • Object
show all
Defined in:
lib/rpub/commands/help.rb

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#help, #initialize

Methods included from SubclassTracker

#each, #identifier, #inherited, #matching

Constructor Details

This class inherits a constructor from Rpub::Commands::Base

Instance Method Details

#invokeObject



6
7
8
9
10
11
12
# File 'lib/rpub/commands/help.rb', line 6

def invoke
  if options.empty?
    Main.new.invoke
  else
    Base.matching(options.shift).new.help
  end
end