Sha256: d5d988dbadbdb9e752ca55f379f7396f00d407be5df9e1b56076d60633d1d63c
Contents?: true
Size: 412 Bytes
Versions: 1
Compression:
Stored size: 412 Bytes
Contents
class InterceptBuilder def self.build_worker(callback, description) interceptor_map = {} decorator_map = {} description[:interception].each do |unit| strategy = Intercept::StrategyBuilder.from_hash(unit[:strategy]) unit[:fields].each do |field| interceptor_map[field] = strategy end end Intercept::Worker.new(callback, interceptor_map, decorator_map) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
intercept-0.2.1 | lib/intercept_builder.rb |