refact
This commit is contained in:
9
lib/service/wiki_service.rb
Normal file
9
lib/service/wiki_service.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class WikiService
|
||||
def initialize(repo) = @repo = repo
|
||||
|
||||
def list(category) = @repo.list(category)
|
||||
def content(page_id) = @repo.content(page_id)
|
||||
def page_url(locale, path) = @repo.page_url(locale, path)
|
||||
end
|
||||
Reference in New Issue
Block a user