Class: Identifiers::Handle
- Inherits:
-
Object
- Object
- Identifiers::Handle
- 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 |