Rand Stats

Serialize::Tiny

github:vendethiel

Serialize::Tiny

A very bare-bones module that serializes an instance's public attributes.

Examples

class A {
  has $.pub;
  has $!priv;
}

use Serialize::Tiny;
say serialize(A.new(:5pub));
#=> {pub = 5}