Skip to content

Commit daac9d0

Browse files
deivid-rodriguezioquatix
authored andcommitted
Add frozen string literal support
1 parent c213ad2 commit daac9d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ jobs:
1212
gem install bundler --no-document
1313
bundle install
1414
- name: Run test
15-
run: rake
15+
run: rake && RUBYOPT=--enable-frozen_string_literal rake

lib/rdoc/erb_partial.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class RDoc::ERBPartial < ERB
1212
def set_eoutvar compiler, eoutvar = '_erbout'
1313
super
1414

15-
compiler.pre_cmd = ["#{eoutvar} ||= ''"]
15+
compiler.pre_cmd = ["#{eoutvar} ||= +''"]
1616
end
1717

1818
end

0 commit comments

Comments
 (0)