-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bare services allow us to interleave metadata and arguments when a class takes a hash: object: $class: Class arg: value This makes it easier to provide a "default" class: use Scalar::Util qw( blessed ); my $obj = $wire->get( 'object' ); if ( !blessed $obj ) { $obj = Class->new( %$obj ); } Bare services also allow us to have arrays and hashes of objects: array: - $class: Class arg: value - $class: Class arg: value hash: key: $class: Class arg: value key: $class: Class arg: value Fixes #43
- Loading branch information
Showing
5 changed files
with
343 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.