class Mangdown::MangaBat
Adapter
for mangabat
Constants
- CDNS
- ROOT
Public Instance Methods
cdn_uri?(uri)
click to toggle source
# File lib/mangdown/adapter/manga_bat.rb, line 17 def cdn_uri?(uri) CDNS.any? { |cdn| uri.match?(cdn) } end
chapter(url)
click to toggle source
# File lib/mangdown/adapter/manga_bat.rb, line 29 def chapter(url) Chapter.load(url) end
for?(uri)
click to toggle source
# File lib/mangdown/adapter/manga_bat.rb, line 13 def for?(uri) uri.to_s.start_with?(ROOT) || cdn_uri?(uri) end
manga(url)
click to toggle source
# File lib/mangdown/adapter/manga_bat.rb, line 25 def manga(url) Manga.load(url) end
manga_list()
click to toggle source
# File lib/mangdown/adapter/manga_bat.rb, line 21 def manga_list MangaList.load('https://mangabat.com/manga_list') end
page(url)
click to toggle source
# File lib/mangdown/adapter/manga_bat.rb, line 33 def page(url) Page.load(url) end