class

Crowbar::Metadata

Inherits Reference < Object

Detailed metadata record for each transformation round. Provides telemetry for mutations applied, modified offsets, and reproducibility.

Constructors

new(seed : UInt64 = 0_u64, iteration : Int64 = 0_i64, input_size : Int32 = 0, output_size : Int32 = 0)
Source

Instance methods

fitness
Source
fitness=(fitness : Float64)
Source
input_size
Source
input_size=(input_size : Int32)
Source
iteration
Source
iteration=(iteration : Int64)
Source
modified_ranges
Source
modified_ranges=(modified_ranges : Array(Tuple(Int32, Int32)))
Source
mutations_applied
Source
mutations_applied=(mutations_applied : Array(String))
Source
output_size
Source
output_size=(output_size : Int32)
Source
record_mutation(name : String, range : Tuple(Int32, Int32) | Nil = nil, description : String | Nil = nil)
Source
record_step(category : StepCategory, name : String, description : String, range : Tuple(Int32, Int32) | Nil = nil, diff_bytes : Int32 = 0, details : Hash(String, String) = Hash(String, String).new) : TransformationStep
Source
seed
Source
seed=(seed : UInt64)
Source
steps
Source
steps=(steps : Array(TransformationStep))
Source
to_s(io : IO)

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