Method: Acter.handle_invalid_command
- Defined in:
- lib/acter.rb
.handle_invalid_command(exn) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/acter.rb', line 27 def handle_invalid_command(exn) puts exn puts help = Help.new(exn.schema) case exn when HelpWanted, MissingParameters puts help.help_for_action(exn.action, exn.subject) when InvalidAction puts help.help_for_subject(exn.subject) else puts help.general_help end end |