module Isolator::Isolate
Add .isolate function to build and register adapters
Public Instance Methods
isolate(id, **options)
click to toggle source
# File lib/isolator/isolate.rb, line 6 def isolate(id, **options) raise "Adapter already registered: #{id}" if Isolator.adapters.key?(id.to_s) adapter = AdapterBuilder.call(**options) Isolator.adapters[id.to_s] = adapter end