* Refactor iqdb response collection

This commit is contained in:
r888888888
2014-05-08 16:42:16 -07:00
parent d46042f038
commit 6de67da280
7 changed files with 7 additions and 18 deletions

View File

@@ -2,7 +2,8 @@ module Iqdb
module Responses
class Collection
attr_reader :responses
delegate :each, :empty?, :any?, :to => :matches
include Enumerable
delegate :<=>, :each, :to => :matches
def initialize(response_string)
@responses = response_string.split(/\n/).map do |string|