Class: Identifiers::DOI
- Inherits:
-
Object
- Object
- Identifiers::DOI
- Defined in:
- lib/identifiers/doi.rb
Class Method Summary collapse
Class Method Details
.extract(str) ⇒ Object
3 4 5 |
# File 'lib/identifiers/doi.rb', line 3 def self.extract(str) str.scan(%r{\b10\.\d{3,}/\S+\b}).map(&:downcase) end |