Method: Externals::Command#initialize
- Defined in:
- lib/externals/command.rb
#initialize(name, usage, summary = nil) ⇒ Command
Returns a new instance of Command.
6 7 8 9 10 11 12 13 14 |
# File 'lib/externals/command.rb', line 6 def initialize name, usage, summary = nil @name = name @usage = usage @summary = summary if !@summary @summary, @usage = @usage, @summary end end |