lib/easy-settings/struct.rb in easy-settings-1.2.0 vs lib/easy-settings/struct.rb in easy-settings-1.3.0

- old
+ new

@@ -22,18 +22,18 @@ def initialize(properties = {}) @properties = properties end def [](property) - @properties.fetch(property){ raise_unknown_property(property) } + @properties.fetch(property.to_s){ raise_unknown_property(property) } end def []=(property, value) - @properties[property] = value + @properties[property.to_s] = value end def try(property) - @properties[property] + @properties[property.to_s] end def to_h @properties.transform_values{ |v| v.is_a?(EasySettings::Struct) ? v.to_h : v } end