v0.7.2
v0.7.2 - 2019-07-09
Added
.resolve
accepts an optional fallback block, similar to howHash#fetch
works (flash-gordon)container.resolve('missing_key') { :fallback } # => :fallback
.decorate
can (again) work with static values. Also, it can take a block instead ofwith
(flash-gordon)container.register('key', 'value') container.decorate('key') { |v| "<'#{v}'>" } container.resolve('key') # => "<'value'>"