[ruby-core:70997] Re: limiting scope of magic comments like frozen_string_literal

From: Tanaka Akira <akr@...>
Date: 2015-10-05 21:49:34 UTC
List: ruby-core #70997
2015-10-05 13:59 GMT+09:00 Eric Wong <normalperson@yhbt.net>:

> It would make refactoring to moving methods to different files/modules
> easier, I think.

In most case, there should be no problem with moving a code block
from "frozen_string_literal: true" part
to "frozen_string_literal: false".

I recommend to update a code block when it is moved
from "frozen_string_literal: false" part
to "frozen_string_literal: true".
-- 
Tanaka Akira

In This Thread