class

Tracing::Core::Field::ValueSet

Inherits Tracing::FmtField::RecordFields < Reference < Object

A set of recorded field values paired with a FieldSet.

Constructors

new(fields : FieldSet = FieldSet.new)
Source

Instance methods

empty?
Source
fields
Source
record(field : Field, value : Int) : Nil
Source
record(field : Field, value : String) : Nil
Source
record(field : Field, value : Bool) : Nil
Source
record(field : Field, value : Float) : Nil
Source
record(field : Field, value : Exception) : Nil
Source
record(field : Field, value : _) : Nil
Source
record(visitor : Tracing::Core::Field::Visit) : Nil
Source
to_s(io : IO) : Nil

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
Source
visit(visitor : Visit) : Nil
Source