Skip to content

Commit 4ac1147

Browse files
committed
chore: Fix code style
1 parent fbab1b9 commit 4ac1147

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/docrb-html/lib/renderer/page.rb

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,15 @@ def initialize(title: nil, level: 0, &body)
88
@title = "#{title} - Docrb"
99
@body = body || -> { "" }
1010
@level = level
11-
@make_path = -> (path) { Helpers.current_renderer.make_path(path) }
11+
@make_path = ->(path) { Helpers.current_renderer.make_path(path) }
1212
end
1313

1414
def render
1515
PAGE_BASE.render(Object.new,
1616
make_path: @make_path,
1717
title: @title,
1818
level: @level,
19-
body: @body.call
20-
)
19+
body: @body.call)
2120
end
2221

2322
def render_to(path) = File.write(path, render)

0 commit comments

Comments
 (0)