Flowdock
method

extract

Importance_0
v1_9_2_180 - Show latest stable - 0 notes - Class: Parser
extract(str, schemes = nil, &block) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/uri/common.rb, line 195
    def extract(str, schemes = nil, &block)
      if block_given?
        str.scan(make_regexp(schemes)) { yield $& }
        nil
      else
        result = []
        str.scan(make_regexp(schemes)) { result.push $& }
        result
      end
    end
Register or log in to add new notes.