Class: Identifiers::NationalClinicalTrialId

Inherits:
Object
  • Object
show all
Defined in:
lib/identifiers/national_clinical_trial_id.rb

Class Method Summary collapse

Class Method Details

.extract(str) ⇒ Object



3
4
5
# File 'lib/identifiers/national_clinical_trial_id.rb', line 3

def self.extract(str)
  str.to_s.scan(/\bNCT\d+\b/i).map(&:upcase)
end