Module: RSpec::Hermetic::Probe
- Defined in:
- lib/rspec/hermetic/probe.rb,
lib/rspec/hermetic/probe/env.rb,
lib/rspec/hermetic/probe/base.rb,
lib/rspec/hermetic/probe/time.rb,
lib/rspec/hermetic/probe/rails.rb,
lib/rspec/hermetic/probe/globals.rb,
lib/rspec/hermetic/probe/constants.rb,
lib/rspec/hermetic/probe/resources.rb,
lib/rspec/hermetic/probe/filesystem.rb,
lib/rspec/hermetic/probe/randomness.rb,
lib/rspec/hermetic/probe/ruby_runtime.rb
Defined Under Namespace
Classes: Base, Constants, Env, Filesystem, Globals, Rails, Randomness, Resources, RubyRuntime, Time
Constant Summary collapse
- REGISTRY =
{ env: Env, constants: Constants, globals: Globals, ruby_runtime: RubyRuntime, rails: Rails, time: Time, randomness: Randomness, resources: Resources, filesystem: Filesystem }.freeze
Class Method Summary collapse
Class Method Details
.build(name, configuration) ⇒ Object
30 31 32 33 34 35 |
# File 'lib/rspec/hermetic/probe.rb', line 30 def build(name, configuration) probe_class = REGISTRY.fetch(name.to_sym) do raise Error, "unknown hermetic probe: #{name.inspect}" end probe_class.new(configuration) end |