Module: MockServer::Store
- Included in:
- Playback, Record, MockServer::Spec::Helpers
- Defined in:
- lib/mock_server/store/global.rb
Instance Method Summary collapse
- #mock_server_options_merge(opt = {}) ⇒ Object
- #mock_server_options_read ⇒ Object
- #mock_server_options_write(value) ⇒ Object
Instance Method Details
#mock_server_options_merge(opt = {}) ⇒ Object
5 6 7 8 |
# File 'lib/mock_server/store/global.rb', line 5 def (opt = {}) $mock_server_options ||= MockServer::State.new(opt) $mock_server_options.merge!(opt) end |
#mock_server_options_read ⇒ Object
10 11 12 13 |
# File 'lib/mock_server/store/global.rb', line 10 def $mock_server_options ||= MockServer::State.new $mock_server_options end |
#mock_server_options_write(value) ⇒ Object
15 16 17 18 |
# File 'lib/mock_server/store/global.rb', line 15 def (value) $mock_server_options ||= MockServer::State.new $mock_server_options = value end |