lib/zabbix/client/client.rb in zabbix-client-0.0.5 vs lib/zabbix/client/client.rb in zabbix-client-0.0.6
- old
+ new
@@ -99,11 +99,11 @@
unless (0..2).include?(args.length)
raise ArgumentError, "wrong number of arguments: #{args.inspect} (#{args.length} for 0..2)"
end
args.each do |arg|
- unless arg.kind_of?(Hash)
- raise TypeError, "wrong argument: #{arg.inspect} (expected Hash)"
+ unless arg.kind_of?(Hash) or arg.kind_of?(Array)
+ raise TypeError, "wrong argument: #{arg.inspect} (expected Hash or Array)"
end
end
end
end # Method