Query: moosex::yaml
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MooseX::YAML(3pm) User Contributed Perl Documentation MooseX::YAML(3pm)NAMEMooseX::YAML - DWIM loading of Moose objects from YAMLSYNOPSIS# given some class: package My::Module; use Moose; has package => ( is => "ro", init_arg => "name", ); has version => ( is => "rw", init_arg => undef, ); sub BUILD { shift->version(3) } # load an object like so: use MooseX::YAML qw(Load -xs); my $obj = Load(<<'YAML'); --- !My::Module # this syntax requires YAML::XS name: "MooseX::YAML" YAML $obj->package; # "MooseX::YAML" $obj->version; # 3, BUILD was calledDESCRIPTIONThis module provides DWIM loading of Moose based objects from YAML documents. Any hashes blessed into a Moose class will be replaced with a properly constructed instance (respecting init args, "BUILDALL", and the meta instance type). This is similar to YAML::Active in that certain nodes in the loaded YAML documented are treated specially.EXPORTSAll exports are setup by Sub::Exporter using currying. "-xs", "-syck" or "-pp" can be specified to specify YAML::XS, YAML::Syck or YAML on a per import basis. If no driver is explicitly chosen YAML::XS will be tried first, falling back to YAML. Load LoadFileVERSION CONTROLThis module is maintained using Darcs. You can get the latest version from <http://nothingmuch.woobling.org/code>, and use "darcs send" to commit changes.AUTHORYuval Kogman <nothingmuch@woobling.org>COPYRIGHTCopyright (c) 2008 Yuval Kogman. All rights reserved This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2010-02-05 MooseX::YAML(3pm)
Related Man Pages |
---|
jifty::dbi::filter::yaml(3pm) - debian |
log::handler::plugin::yaml(3pm) - debian |
moosex::yaml(3pm) - debian |
padre::plugin::yaml(3pm) - debian |
test::yaml::valid(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
PyYAML 3.06 (Default branch) |
PyYAML 3.07 (Default branch) |
Problem with Installing Perl Module in Fedora 20 |
YAML file update |