This commit is contained in:
Alex Kotov 2024-02-24 08:25:58 +04:00
parent 910012ae03
commit be5ce87dab
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -68,7 +68,7 @@ module Repubmark
end end
def method_missing(method_name, ...) def method_missing(method_name, ...)
raise 'Chapters after chapters' if @epilogue raise 'Chapters after epilogue' if @epilogue
chapter = @chapter || Chapter.new(self) chapter = @chapter || Chapter.new(self)
if chapter.respond_to? method_name if chapter.respond_to? method_name