Sha256: 96cb8bd4b9c88e232edd7444e1fe373a7837759a2b41bd9c738e1709c67ec9a9
Contents?: true
Size: 364 Bytes
Versions: 11
Compression:
Stored size: 364 Bytes
Contents
module Synvert module Utils class << self def format_url(url) convert_to_github_raw_url(url) end private def convert_to_github_raw_url(url) if url.include?('//github.com/') url = url.sub('//github.com/', '//raw.githubusercontent.com/').sub('/blob/', '/') end url end end end end
Version data entries
11 entries across 11 versions & 1 rubygems