sources: factor out Source::URL::TwitPic.

This commit is contained in:
evazion
2022-02-23 18:19:04 -06:00
parent 7ed8f95a8e
commit 043c08eb05
9 changed files with 117 additions and 30 deletions

View File

@@ -19,6 +19,7 @@ module Source
class URL < Danbooru::URL
SUBCLASSES = [
Source::URL::Twitter,
Source::URL::TwitPic,
]
# Parse a URL into a subclass of Source::URL, or raise an exception if the URL is not a valid HTTP or HTTPS URL.