Skip to content

Commit

Permalink
chore: Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
heyvito committed Sep 17, 2024
1 parent fbab1b9 commit 4ac1147
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/docrb-html/lib/renderer/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@ 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
PAGE_BASE.render(Object.new,
make_path: @make_path,
title: @title,
level: @level,
body: @body.call
)
body: @body.call)
end

def render_to(path) = File.write(path, render)
Expand Down

0 comments on commit 4ac1147

Please sign in to comment.