Sha256: 982f560cd963013fa1d0e5ebf8d7fa423e79a8526f115ff5aeed22b8e5b2ce46
Contents?: true
Size: 447 Bytes
Versions: 1
Compression:
Stored size: 447 Bytes
Contents
class DevSystem::CommandPanel < Liza::Panel def call args # 1. LOG log "call #{args}" # 2. FIND command return call_not_found args if args.none? command = args[0] log({command:}) command_klass = Liza.const "#{command}_command" # 3. CALL command_klass.call args[1..-1] rescue Liza::ConstNotFound call_not_found args end def call_not_found args Liza::NotFoundCommand.call args end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lizarb-1.0.3 | lib/dev_system/dev/panels/command_panel.rb |