Sha256: eb45ee2384bf111b9f3037dc665d8df740cd22a868b5cbbb00189d731c91ba40

Contents?: true

Size: 280 Bytes

Versions: 2

Compression:

Stored size: 280 Bytes

Contents

class GenomerPluginValidate::Validator::DuplicateID < Genomer::Plugin
  include GenomerPluginValidate::Validator

  def run
    annotations_by_attribute('ID').
      select{|_,v| v.length > 1}.
      select{|k,_| ! k.nil? }.
      map{|(id,_)| "Duplicate ID '#{id}'" }
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
genomer-plugin-validate-0.0.2 lib/genomer-plugin-validate/validator/duplicate_id.rb
genomer-plugin-validate-0.0.1 lib/genomer-plugin-validate/validator/duplicate_id.rb