[Nitro] opinion on console command facet
Jonas Pfenniger
zimba.tm at gmail.com
Mon Jun 19 05:20:15 EDT 2006
On 19/06/06, TRANS <transfire at gmail.com> wrote:
> > Console::Controller ? Console::Command doesn't fit quite since it can
> > be multiple commands.
>
> ooeee... you're in too deep with the MVC ;-)
>
> It's a "command", man, as in "shell command" and "command line interface".
:-p maybe
> > class MyCmd < Console::Command
> > def something
> > puts "Something!"
> > end
> > ann :something, :doc => "This does something"
> > end
>
> Hmm... that's a interesting though. I didn't do it that way. The
> implementation is rather simple by comparision. Is there's an
> advantage to using annotations here?
Not really, unless RDoc to annotation is implemented. Then you could have :
class MyCmd < Console::Command
# This does something
def something
puts "Something"
end
end
--
Cheers,
zimbatm
http://zimbatm.oree.ch
More information about the Nitro-general
mailing list