Project

General

Profile

Actions

Misc #14000

closed

OpenStruct with #frozen_string_literal: true

Added by esparta (Espartaco Palma) over 6 years ago. Updated over 6 years ago.


Description

The current implementation of OpenStruct needs minimal changes in order to support frozen strings.
The mutable strings are only on inspect method.

IMO, we have two options:

a) leave the code as it is and just adding .dup where is needed
b) Change to a functional style (map + join) instead of flags + concat.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0