Class: FindCommandFactory
- Inherits:
-
Object
- Object
- FindCommandFactory
- Defined in:
- lib/justy/commands/find_command_factory.rb
Class Method Summary collapse
Class Method Details
.create_command(type) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/justy/commands/find_command_factory.rb', line 9 def self.create_command(type) case type when :md5 MD5FindCommand.new when :filename NameFindCommand.new else raise "Bad search type: #{type}" end end |