Sha256: 26cb845463349f2ddd4e0349d92cddf436538bd8c3b0b8f2f295cee8b5afc351

Contents?: true

Size: 378 Bytes

Versions: 63

Compression:

Stored size: 378 Bytes

Contents

class WebMock::Util::ValuesStringifier
  def self.stringify_values(value)
    case value
    when String, Numeric, TrueClass, FalseClass
      value.to_s
    when Hash
      Hash[
        value.map do |k, v|
          [k, stringify_values(v)]
        end
      ]
    when Array
      value.map do |v|
        stringify_values(v)
      end
    else
      value
    end
  end
end

Version data entries

63 entries across 63 versions & 5 rubygems

Version Path
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/webmock-3.18.1/lib/webmock/util/values_stringifier.rb
webmock-3.18.1 lib/webmock/util/values_stringifier.rb
webmock-3.18.0 lib/webmock/util/values_stringifier.rb
webmock-3.15.2 lib/webmock/util/values_stringifier.rb
webmock-3.16.2 lib/webmock/util/values_stringifier.rb
webmock-3.16.1 lib/webmock/util/values_stringifier.rb
webmock-3.15.1 lib/webmock/util/values_stringifier.rb
webmock-3.17.1 lib/webmock/util/values_stringifier.rb
webmock-3.17.0 lib/webmock/util/values_stringifier.rb
logstash-output-scalyr-0.2.1.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/util/values_stringifier.rb
logstash-output-scalyr-0.2.0 vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/util/values_stringifier.rb
logstash-output-scalyr-0.2.0.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/util/values_stringifier.rb
logstash-output-scalyr-0.1.26.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/util/values_stringifier.rb
logstash-output-scalyr-0.1.25.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/util/values_stringifier.rb
logstash-output-scalyr-0.1.24.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/util/values_stringifier.rb
logstash-output-scalyr-0.1.23.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/util/values_stringifier.rb
logstash-output-scalyr-0.1.22.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/util/values_stringifier.rb
logstash-output-scalyr-0.1.21.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/util/values_stringifier.rb
logstash-output-scalyr-0.1.20.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/util/values_stringifier.rb
webmock-3.14.0 lib/webmock/util/values_stringifier.rb