Class: Hash Private

Inherits:
Object
  • Object
show all
Defined in:
lib/eagleplatform.rb

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.

Instance Method Summary collapse

Instance Method Details

#to_sym_hashHash

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.

Return Hash with symbolic keys

Returns:

  • (Hash)

    Return Hash with symbolic keys



16
17
18
# File 'lib/eagleplatform.rb', line 16

def to_sym_hash
  self.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
end