[Nitro] opinion on console command facet

Jonas Pfenniger zimba.tm at gmail.com
Mon Jun 19 02:41:38 EDT 2006


On 19/06/06, TRANS <transfire at gmail.com> wrote:
> another one of my opinion queries....

Console::Controller ? Console::Command doesn't fit quite since it can
be multiple commands.

>   # bin/example
>
>   class MyCmd < Console::Command
>
>     help "This does something"
>
>     def something
>       puts "Something!"
>     end
>  end

Is it the same as :

class MyCmd < Console::Command
  def something
    puts "Something!"
  end
  ann :something, :doc => "This does something"
end

-- 
Cheers,
  zimbatm

http://zimbatm.oree.ch



More information about the Nitro-general mailing list