Sha256: e0e848284cb839d143f2f94a3150bbc128fbfd4dd470a9e843a014abafd60225
Contents?: true
Size: 500 Bytes
Versions: 1
Compression:
Stored size: 500 Bytes
Contents
class DevSystem::BenchCommand < DevSystem::Command def self.call args # 1. LOG log :higher, "args: #{args}" puts # 2. FIND bench return call_not_found args if args.none? bench = args[0] log({bench:}) begin bench_klass = Liza.const "#{bench}_bench" rescue Liza::ConstNotFound bench_klass = NotFoundBench end # 3. CALL bench_klass.call args[1..-1] end def self.call_not_found args Liza::NotFoundBench.call args end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lizarb-1.0.3 | lib/dev_system/dev/controllers/command/bench_command.rb |