Skip to content

Commit

Permalink
Add frozen string literal support
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez authored and ioquatix committed Apr 7, 2020
1 parent c213ad2 commit daac9d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
gem install bundler --no-document
bundle install
- name: Run test
run: rake
run: rake && RUBYOPT=--enable-frozen_string_literal rake
2 changes: 1 addition & 1 deletion lib/rdoc/erb_partial.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class RDoc::ERBPartial < ERB
def set_eoutvar compiler, eoutvar = '_erbout'
super

compiler.pre_cmd = ["#{eoutvar} ||= ''"]
compiler.pre_cmd = ["#{eoutvar} ||= +''"]
end

end
Expand Down

0 comments on commit daac9d0

Please sign in to comment.