Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created January 3, 2017 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dogbert17/9563e21b80f6bea38c8a5c35b4dff4d7 to your computer and use it in GitHub Desktop.
Save dogbert17/9563e21b80f6bea38c8a5c35b4dff4d7 to your computer and use it in GitHub Desktop.
use Test;
plan 4;
class TestClass {
method one {}
method two {}
method three {}
method four {}
}
class TestHOW is Metamodel::ClassHOW {
method add_method(Mu $obj, $name, $code)
{ callsame; }
}
my package EXPORTHOW {}
EXPORTHOW::<class> = TestHOW;
my $tc = TestClass.new;
ok $tc.can('one');
ok $tc.can('two');
ok $tc.can('three');
ok $tc.can('four')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment