class Gdbmish::Dump::Ascii::Appender

Overview

Appends and counts #pushed data as ASCII dump format onto @io.

Users should not use this class stand-alone, as it only represents the data part of an dump, without header and footer. An instance of it gets yielded when using Ascii#dump(io) { |appender| }

Defined in:

gdbmish/dump.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(io : IO) #

[View source]

Instance Method Detail

def <<(kv : Tuple(String, String)) : Nil #

Alias for #push


[View source]
def count : UInt64 #

[View source]
def push(kv : Tuple(String, String)) : Nil #

Push a {"key", "value"} Tuple onto the dump


[View source]