NAME

Rope::Monkey - Rope Monkey Patching

VERSION

Version 0.19

SYNOPSIS

package Knot;

use Rope;
use Rope::Monkey;

prototyped (
	loops => 1,
	hitches => 10,
	...

);

properties {
	bends => {
		type => sub { $_[0] =~ m/^\d+$/ ? $_[0] : die "$_[0] != integer" },
		value => 10,
		writeable => 0,
		configurable => 1,
		enumerable => 1,
	},
	...
};

function add_loops => sub {
	my ($self, $loop) = @_;
	$self->loops += $loop;
};

monkey; # THIS IS IMPORTANT AND SHOULD COME AT THE END OF YOUR DEFINITION

1;

...

my $k = Knot->new();

say $k->loops; # 1;

$k->add_loops(5);

say $k->loops; # 6;

$k->hitches = 15;

$k->add_loops = 5; # errors

$k->monkey(extending => 'okay', another => { writeable => 1 });

Description

I once had a conversation with an individual about how Autoloading was evil so here is a monkey patch version, which I personally think is as evil. I believe me and that individual have been through more than anyone else can comprehend in the modern world that we live in. Although we had very different outcomes from the process, they should understand I think this way but perhaps I am wrong to. They should find my book on the biggest book store in the world, like the rest of you. I can only speak for my truth.

AUTHOR

LNATION, <email at lnation.org>

BUGS

Please report any bugs or feature requests to bug-rope at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Rope. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Rope

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

This software is Copyright (c) 2023 by LNATION.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)