diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-04-18 15:03:28 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-04-18 15:03:28 +0000 |
commit | 2fe5b8de1e9d06482aa76303e7342bc6605700ea (patch) | |
tree | cccc47c409970b2db7a8f64f6c25e993270ddf9b /lib/YAML/Tag.pm | |
download | YAML-tarball-master.tar.gz |
Diffstat (limited to 'lib/YAML/Tag.pm')
-rw-r--r-- | lib/YAML/Tag.pm | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/YAML/Tag.pm b/lib/YAML/Tag.pm new file mode 100644 index 0000000..57aef46 --- /dev/null +++ b/lib/YAML/Tag.pm @@ -0,0 +1,19 @@ +use strict; use warnings; +package YAML::Tag; + +use overload '""' => sub { ${$_[0]} }; + +sub new { + my ($class, $self) = @_; + bless \$self, $class +} + +sub short { + ${$_[0]} +} + +sub canonical { + ${$_[0]} +} + +1; |