Sha256: 9e66f76ad3c40fefd51d5c5e3e43214410a5d39245558cdaf0bfc12f32386c40

Contents?: true

Size: 295 Bytes

Versions: 2

Compression:

Stored size: 295 Bytes

Contents

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

  def run
    missing = annotations_by_attribute('ID').detect{|k,_| k.nil? }
    if missing
      ["Annotations found with missing ID attribute"]
    else
      []
    end
  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/missing_id.rb
genomer-plugin-validate-0.0.1 lib/genomer-plugin-validate/validator/missing_id.rb