Skip to content

Incompatible with --enable-frozen-string-literal #149

@matthew-puku

Description

@matthew-puku

It seems the plan is to eventually make string literals frozen by default: https://bugs.ruby-lang.org/issues/20205

With RUBYOPT="--enable-frozen-string-literal, rerun doesn't work, but it'd be nice if it did.

It raises an exception here:

d.chomp!("/")

Suggestion

d.delete_suffix("/") is a non-mutating (and imo, more readable) alternative.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions