vendor/bundle/ruby/2.7.0/gems/jekyll-github-metadata-2.13.0/lib/jekyll-github-metadata/sanitizer.rb
# Sanitize the Sawyer Resource or Hash
# Note: the object must respond to :to_hash for this to work.
# Consider using #sanitize instead of this method directly.
#
# resource - an Object which responds to :to_hash
#
# Returns the sanitized sawyer resource or hash as a hash.
Sanitize the Sawyer Resource or Hash
Note: the object must respond to :to_hash for this to work.
Consider using #sanitize instead of this method directly.

an Object which responds to :to_hash

Returns the sanitized sawyer resource or hash as a hash.
Sanitize the Sawyer Resource or Hash Note : the object must respond to : to_hash for this to work . Consider using #sanitize instead of this method directly . an Object which responds to : to_hash Returns the sanitized sawyer resource or hash as a hash .
def sanitize_resource(resource)
        resource.to_hash.each_with_object({}) do |(k, v), result|
          result[k.to_s] = sanitize(v)
          result
        end
      end
def sanitize_resource ( resource ) resource . to_hash . each_with_object ( { } ) do | ( k , v ) , result | result [ k . to_s ] = sanitize ( v ) result end end
Sanitize the Sawyer Resource or Hash
Note: the object must respond to :to_hash for this to work.
Sanitize the Sawyer Resource or Hash Note : the object must respond to : to_hash for this to work .
resource
<not_specific>