Module: Carnivore::Utils

Extended by:
Logging, Params
Defined in:
lib/carnivore/utils.rb,
lib/carnivore/utils/smash.rb,
lib/carnivore/utils/params.rb,
lib/carnivore/utils/logging.rb,
lib/carnivore/utils/message_registry.rb

Overview

Helper utilities

Defined Under Namespace

Modules: Logging, Params Classes: MessageRegistry, Smash

Class Method Summary (collapse)

Class Method Details

+ (NilClass) log(*args) Originally defined in module Logging

Log message

Parameters:

  • args (Object)

    argument list

Returns:

  • (NilClass)

+ (Object, NilClass) retrieve(hash, *args) Originally defined in module Params

Retrieve value in hash at given path

Parameters:

  • hash (Hash)

    hash to walk into

  • args (String, Symbol)

    argument list to walk in hash

Returns:

  • (Object, NilClass)

+ (Hash) symbolize_hash(hash) Originally defined in module Params

Symbolize keys in hash

Parameters:

Returns:

  • (Hash)

    new hash instance with symbolized keys