Just if you want to keep the string empty. Otherwise, you will not be able
to modify it

On Sat, Nov 26, 2016, 11:45 AM Aleksey Ivanov <ialexxei / gmail.com> wrote:

> Hello.
>
> Isn't it mode convenient to use
> str = ''.freeze?
>
> Rubocop gives advises with #freeze
>
> Unsubscribe: <mailto:ruby-talk-request / ruby-lang.org?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
>
-- 
--

Sbastien Puyet
(supressed text/html)
Unsubscribe: <mailto:ruby-talk-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>