post sets: eliminate PostSets::Base class.
This commit is contained in:
@@ -1,39 +0,0 @@
|
|||||||
module PostSets
|
|
||||||
class Base
|
|
||||||
def raw
|
|
||||||
false
|
|
||||||
end
|
|
||||||
|
|
||||||
def wiki_page
|
|
||||||
nil
|
|
||||||
end
|
|
||||||
|
|
||||||
def artist
|
|
||||||
nil
|
|
||||||
end
|
|
||||||
|
|
||||||
def is_single_tag?
|
|
||||||
false
|
|
||||||
end
|
|
||||||
|
|
||||||
def tag_string
|
|
||||||
nil
|
|
||||||
end
|
|
||||||
|
|
||||||
def unknown_post_count?
|
|
||||||
false
|
|
||||||
end
|
|
||||||
|
|
||||||
def use_sequential_paginator?
|
|
||||||
false
|
|
||||||
end
|
|
||||||
|
|
||||||
def best_post
|
|
||||||
nil
|
|
||||||
end
|
|
||||||
|
|
||||||
def presenter
|
|
||||||
raise NotImplementedError
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
module PostSets
|
module PostSets
|
||||||
class Post < PostSets::Base
|
class Post
|
||||||
MAX_PER_PAGE = 200
|
MAX_PER_PAGE = 200
|
||||||
attr_reader :tag_array, :page, :raw, :random, :post_count, :format
|
attr_reader :tag_array, :page, :raw, :random, :post_count, :format
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
module PostSets
|
|
||||||
class SearchError < StandardError
|
|
||||||
end
|
|
||||||
end
|
|
||||||
Reference in New Issue
Block a user