Class: GenomerPluginValidate::Validator::MissingID
- Inherits:
-
Genomer::Plugin
- Object
- Genomer::Plugin
- GenomerPluginValidate::Validator::MissingID
- Includes:
- GenomerPluginValidate::Validator
- Defined in:
- lib/genomer-plugin-validate/validator/missing_id.rb
Instance Method Summary collapse
Methods included from GenomerPluginValidate::Validator
#annotations_by_attribute, load, validators
Instance Method Details
#run ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/genomer-plugin-validate/validator/missing_id.rb', line 4 def run missing = annotations_by_attribute('ID').detect{|k,_| k.nil? } if missing ["Annotations found with missing ID attribute"] else [] end end |