class Identifiers::RepecId

Public Class Methods

extract(str) click to toggle source
# File lib/identifiers/repec_id.rb, line 3
def self.extract(str)
  str
    .to_s
    .scan(/\brepec:[^[:space:]]+\b/i)
    .map { |repec| "RePEc:#{repec.split(':', 2).last}" }
end