Sha256: 0514a5225c1a16ae3dec4455d1cc72981527d927ebaa08d64dd2af202fa3056e

Contents?: true

Size: 146 Bytes

Versions: 1

Compression:

Stored size: 146 Bytes

Contents

require "yt_id/version"
require "yt_id/regex"

module YTId

  def self.from( url )
    url.match( REGEX ) do |m|
      m['id']
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yt_id-0.0.1 lib/yt_id.rb