lib/rews/item.rb in rews-0.2.5 vs lib/rews/item.rb in rews-0.2.6

- old
+ new

@@ -2,9 +2,10 @@ module Item module_function # return a list of Item objects given a hash formed from an Items element def read_items(client, items) + return [] if !items items.map do |item_class,items_of_class| items_of_class = [items_of_class] if !items_of_class.is_a?(Array) items_of_class.map do |item| Item.new(client, item_class, item) end