Sha256: f4cde3e85dd3c6d90ae36b0f0862f3be29841a1e62177792fe16788bdde9654b

Contents?: true

Size: 488 Bytes

Versions: 10

Compression:

Stored size: 488 Bytes

Contents

# frozen_string_literal: true

# -----------------------------------------------------------------------------
#
# Utility module
#
# -----------------------------------------------------------------------------

module RGeo
  module ImplHelper # :nodoc:
    module Utils # :nodoc:
      private

      def symbolize_hash(hash)
        nhash = {}
        hash.each do |k, v|
          nhash[k.to_sym] = v.is_a?(String) ? v.to_sym : v
        end
        nhash
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rgeo-3.0.0.pre.rc.2 lib/rgeo/impl_helper/utils.rb
rgeo-3.0.0.pre.rc.1 lib/rgeo/impl_helper/utils.rb
rgeo-2.4.0 lib/rgeo/impl_helper/utils.rb
rgeo-2.3.1 lib/rgeo/impl_helper/utils.rb
rgeo-2.3.0 lib/rgeo/impl_helper/utils.rb
rgeo-2.2.0 lib/rgeo/impl_helper/utils.rb
rgeo-2.1.1 lib/rgeo/impl_helper/utils.rb
rgeo-2.1.0 lib/rgeo/impl_helper/utils.rb
rgeo-2.0.1 lib/rgeo/impl_helper/utils.rb
rgeo-2.0.0 lib/rgeo/impl_helper/utils.rb