def erlang_inspect(raw = false)
      return Erlang.inspect(Erlang::Binary.new(@data), raw: raw) if @bits == 8
      result = '<<'
      bytes = @data.bytes
      if last = bytes.pop
        result << bytes.join(',')
        result << ',' if not bytes.empty?
        if @bits == 8
          result << "#{last}"
        else
          result << "#{last}:#{@bits}"
        end
      end
      result << '>>'
      return result
    end
def erlang_inspect(raw = false)
      return Erlang.inspect(Erlang::Binary.new(@data), raw: raw) if @bits == 8
      result = '<<'
      bytes = @data.bytes
      if last = bytes.pop
        result << bytes.join(',')
        result << ',' if not bytes.empty?
        if @bits == 8
          result << "#{last}"
        else
          result << "#{last}:#{@bits}"
        end
      end
      result << '>>'
      return result
    end
Return the contents of this `Bitstring` as a Erlang-readable `::String`.

 @example
     Erlang::Bitstring["test", bits: 3].erlang_inspect
     # => "<<116,101,115,4:3>>"

 @return [::String]