lib/lotus/utils/attributes.rb in lotus-utils-0.4.1 vs lib/lotus/utils/attributes.rb in lotus-utils-0.4.2

- old
+ new

@@ -102,16 +102,14 @@ nil end # Returns a deep duplicated copy of the attributes as a Hash # - # @return [Lotus::Utils::Hash] + # @return [::Hash] # # @since 0.3.2 - # - # @see Lotus::Utils::Hash def to_h - Utils::Hash.new.tap do |result| + ::Hash[].tap do |result| @attributes.each do |k, v| result[k] = _read_value(v) end end end