Class: Mutant::Transform::Hash::Symbolize Private

Inherits:
Mutant::Transform show all
Defined in:
lib/mutant/transform.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Transform to symbolize array keys

Instance Method Summary collapse

Methods inherited from Mutant::Transform

#slug

Instance Method Details

#apply(input) ⇒ Hash{Symbol => Object}

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Apply transformation to input

Parameters:

  • (Hash{String => Object})

Returns:

  • (Hash{Symbol => Object})


264
265
266
# File 'lib/mutant/transform.rb', line 264

def apply(input)
  success(input.transform_keys(&:to_sym))
end