Module Ethon::Easy::Util
In: lib/ethon/easy/util.rb

This module contains small helpers.

@api private

Methods

Public Instance methods

Escapes zero bytes in strings.

@example Escape zero bytes.

  Util.escape_zero_byte("1\0")
  #=> "1\\0"

@param [ Object ] value The value to escape.

@return [ String, Object ] Escaped String if

  zero byte found, original object if not.

[Validate]