Organize config

This commit is contained in:
Alex Kotov 2023-10-01 00:15:36 +04:00
parent b83e340dbe
commit eba48f7315
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -9,21 +9,21 @@ module Referator
end end
def freeze def freeze
formats.freeze
categories.freeze categories.freeze
formats.freeze
repo.freeze repo.freeze
super super
end end
def formats(&) def categories
@formats ||= Formats.new self
end
def categories(&)
@categories ||= Categories.new self @categories ||= Categories.new self
end end
def repo(&) def formats
@formats ||= Formats.new self
end
def repo
@repo ||= Repo.new self @repo ||= Repo.new self
end end