Class: Identifiers::Handle

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

Class Method Summary collapse

Class Method Details

.extract(str) ⇒ Object



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

def self.extract(str)
  str.to_s.scan(%r{\b[0-9.]+/[^[:space:]]+\b}i)
end