class Identifiers::PubmedId
Constants
- PUBMED_URL
- ZERO_PADDED_NUMBER
Public Class Methods
extract(str)
click to toggle source
# File lib/identifiers/pubmed_id.rb, line 6 def self.extract(str) str = str.to_s str.scan(ZERO_PADDED_NUMBER).flatten | str.scan(PUBMED_URL).flatten end