Class: Identifiers::AdsBibcode
- Inherits:
-
Object
- Object
- Identifiers::AdsBibcode
- Defined in:
- lib/identifiers/ads_bibcode.rb
Class Method Summary collapse
Class Method Details
.extract(str) ⇒ Object
3 4 5 |
# File 'lib/identifiers/ads_bibcode.rb', line 3 def self.extract(str) str.to_s.scan(/\b\d{4}[a-z][0-9a-z&.]{14}\b/i) end |