Module: Startback::Support

Included in:
Web::Api
Defined in:
lib/startback/support.rb,
lib/startback/support/env.rb,
lib/startback/support/hooks.rb,
lib/startback/support/world.rb,
lib/startback/support/logger.rb,
lib/startback/support/redactor.rb,
lib/startback/support/robustness.rb,
lib/startback/support/data_object.rb,
lib/startback/support/fake_logger.rb,
lib/startback/support/log_formatter.rb,
lib/startback/support/operation_runner.rb,
lib/startback/support/transaction_policy.rb,
lib/startback/support/transaction_manager.rb

Defined Under Namespace

Modules: DataObject, Env, OperationRunner, Robustness, TransactionPolicy Classes: FakeLogger, Hooks, LogFormatter, Logger, Redactor, TransactionManager, World

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.deep_merge(h1, h2) ⇒ Object



8
9
10
11
12
# File 'lib/startback/support.rb', line 8

def deep_merge(h1, h2)
  h1.merge(h2){|k,v1,v2|
    v1.is_a?(Hash) && v2.is_a?(Hash) ? deep_merge(v1, v2) : v2
  }
end

Instance Method Details

#loggerObject



4
5
6
# File 'lib/startback/support.rb', line 4

def logger
  Startback::LOGGER
end