From 4ac114751eaf81a1bcded64e2f3ddaffada1556c Mon Sep 17 00:00:00 2001 From: Vito Sartori Date: Tue, 17 Sep 2024 20:32:15 -0300 Subject: [PATCH] chore: Fix code style --- lib/docrb-html/lib/renderer/page.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/docrb-html/lib/renderer/page.rb b/lib/docrb-html/lib/renderer/page.rb index 6ccf83c..1bd5bc4 100644 --- a/lib/docrb-html/lib/renderer/page.rb +++ b/lib/docrb-html/lib/renderer/page.rb @@ -8,7 +8,7 @@ def initialize(title: nil, level: 0, &body) @title = "#{title} - Docrb" @body = body || -> { "" } @level = level - @make_path = -> (path) { Helpers.current_renderer.make_path(path) } + @make_path = ->(path) { Helpers.current_renderer.make_path(path) } end def render @@ -16,8 +16,7 @@ def render make_path: @make_path, title: @title, level: @level, - body: @body.call - ) + body: @body.call) end def render_to(path) = File.write(path, render)