Not caring about warnings is bad. Broken windows do matter. Here’s how to avoid this one:
warning: already initialized constant C
Simply define the constant only if not yet defined:
C = 'value' unless defined?(C)
Not caring about warnings is bad. Broken windows do matter. Here’s how to avoid this one:
warning: already initialized constant C
Simply define the constant only if not yet defined:
C = 'value' unless defined?(C)