YAML-Active
view release on metacpan or search on metacpan
lib/YAML/Active.pm view on Meta::CPAN
Load(Dump($node), $phase);
}
sub LoadFile {
my ($node, $phase) = @_;
node_activate(YAML::XS::LoadFile($node), $phase);
}
sub assert_arrayref {
return if UNIVERSAL::isa($_[0], 'ARRAY');
die sprintf "%s expects an array ref", (caller)[0];
}
sub assert_hashref {
return if UNIVERSAL::isa($_[0], 'HASH');
die sprintf "%s expects a hash ref", (caller)[0];
}
sub yaml_NULL { bless {}, NULL }
# end of activation-related code
# start of dump-related code
sub Dump {
my ($node, %args) = @_;
local $YAML::XS::ForceBlock =
exists $args{ForceBlock} ? $args{ForceBlock} : 1;
my $dump = YAML::XS::Dump(node_dump($node));
( run in 0.563 second using v1.01-cache-2.11-cpan-a3c8064c92c )