Method: Spider::Model::MapperTask#eql?
- Defined in:
- lib/spiderfw/model/mappers/mapper.rb
#eql?(task) ⇒ bool
Returns True if the other task has the same object, action and params, false otherwise.
1371 1372 1373 1374 1375 1376 1377 1378 |
# File 'lib/spiderfw/model/mappers/mapper.rb', line 1371 def eql?(task) return false unless task.class == self.class return false unless (task.object == self.object && task.action == self.action) @params.each do |k, v| return false unless task.params[k] == v end return true end |