lib/lotus/utils/attributes.rb in lotus-utils-0.5.2 vs lib/lotus/utils/attributes.rb in lotus-utils-0.6.0
- old
+ new
@@ -25,10 +25,10 @@
# @since 0.3.2
#
# @example
# require 'lotus/utils/attributes'
#
- # attributes = Lotus::Utils::Attributes.new(a: 1, b: { 2 => [3, 4] } })
+ # attributes = Lotus::Utils::Attributes.new(a: 1, b: { 2 => [3, 4] })
# attributes.to_h # => { "a" => 1, "b" => { "2" => [3, 4] } }
def initialize(hash = {})
@attributes = Utils::Hash.new(hash, &nil).stringify!
end