lib/windcharger/attributes.rb in windcharger-0.3.0 vs lib/windcharger/attributes.rb in windcharger-0.4.0
- old
+ new
@@ -1,8 +1,10 @@
+# frozen_string_literal: true
+
module Windcharger
module Attributes
def attributes
- @__attributes || []
+ (@__attributes || []).dup.freeze
end
private
def __windcharger_add_attribute name