Serialize::Tiny perl6 module.
Perl 6
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

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}