Method: FunctionalLightService::Context#fetch
- Defined in:
- lib/functional-light-service/context.rb
#fetch(key, default = nil, &blk) ⇒ Object
128 129 130 131 132 133 134 |
# File 'lib/functional-light-service/context.rb', line 128 def fetch(key, default = nil, &blk) self[key] ||= if block_given? super(key, &blk) else super end end |