ruby / webrick

HTTP server toolkit
BSD 2-Clause "Simplified" License
286 stars 97 forks source link

Use frozen strings #65

Closed kirs closed 3 years ago

kirs commented 3 years ago

This PR ports https://github.com/ruby/ruby/pull/3560 to this repo.

frozen_string_literal: true is a generally a good practice, and here it will make it easier to call some building blocks of WEBricks from places that require objects to be frozen (e.g. Ractor).

cc @jeremyevans

jeremyevans commented 3 years ago

@kirs Thanks for submitting a patch for this. I'm fine with these changes. Unless another committer objects in the next few days, I'll merge this.