Run rubocop -A

This commit is contained in:
0x1eef 2023-03-11 09:31:37 -03:00
parent 3bbe8cf165
commit 145d5a4399
3 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
source "https://rubygems.org"
##

1
Rules
View file

@ -1,5 +1,6 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
require "ryo"
require "nanoc-gunzip"
require "nanoc-webpack"

View file

@ -1,7 +1,9 @@
# frozen_string_literal: true
module Helper
def inline_json(path)
className = File.basename(path, File.extname(path))
"<script class='json #{className}' type='application/json'>" \
class_name = File.basename(path, File.extname(path))
"<script class='json #{class_name}' type='application/json'>" \
"#{items[path].compiled_content}" \
"</script>"
end