]> Dogcows Code - chaz/p5-File-KDBX/blobdiff - lib/File/KDBX/Transaction.pm
Add function for creating class attributes
[chaz/p5-File-KDBX] / lib / File / KDBX / Transaction.pm
index 0ed48b2141e8db8b904c1c6f94bf3d4a05f99076..218494dd3db8b7897f5659a7ab368afb57b9218f 100644 (file)
@@ -5,6 +5,7 @@ use warnings;
 use strict;
 
 use Devel::GlobalDestruction;
+use File::KDBX::Util qw(:class);
 use namespace::clean;
 
 our $VERSION = '999.999'; # VERSION
@@ -32,7 +33,7 @@ Get the object being transacted on.
 
 =cut
 
-sub object { $_[0]->{object} }
+has 'object', is => 'ro';
 
 =method commit
 
This page took 0.019047 seconds and 4 git commands to generate.