lib/icarus/mod/tools/validator.rb in Icarus-Mod-Tools-2.1.3 vs lib/icarus/mod/tools/validator.rb in Icarus-Mod-Tools-2.1.4
- old
+ new
@@ -7,16 +7,16 @@
class Validator
attr_reader :array
def initialize(type)
@array = case type
- when :modinfo
- Sync::Mods.new.info_array
- when :toolinfo
- Sync::Tools.new.info_array
- else
- raise ArgumentError, "Invalid type: #{type}"
- end
+ when :modinfo
+ Sync::Mods.new.info_array
+ when :toolinfo
+ Sync::Tools.new.info_array
+ else
+ raise ArgumentError, "Invalid type: #{type}"
+ end
end
end
end
end
end