Module: Seams::Runtime
- Included in:
- Seams
- Defined in:
- lib/seams/runtime.rb
Overview
Module-level methods for the public Seams API. Lives in its own file so that lib/seams.rb stays a thin require-only wrapper.
Instance Method Summary collapse
Instance Method Details
#configuration ⇒ Object
7 8 9 |
# File 'lib/seams/runtime.rb', line 7 def configuration @configuration ||= Configuration.new end |
#configure {|configuration| ... } ⇒ Object
11 12 13 |
# File 'lib/seams/runtime.rb', line 11 def configure yield configuration end |
#reset_configuration! ⇒ Object
15 16 17 18 19 |
# File 'lib/seams/runtime.rb', line 15 def reset_configuration! @configuration = Configuration.new Events::Publisher.reset! if defined?(Events::Publisher) Observability.reset! if defined?(Observability) end |