lib/hanami/utils/duplicable.rb in hanami-utils-1.1.0.beta1 vs lib/hanami/utils/duplicable.rb in hanami-utils-1.1.0.beta2
- old
+ new
@@ -67,10 +67,10 @@
# puts result.object_id # => 70207105185500 - Different object
def self.dup(value, &blk)
case value
when NilClass, FalseClass, TrueClass, Symbol, Numeric
value
- when v = blk && blk.call(value)
+ when v = blk&.call(value)
v
else
value.dup
end
end