Created
January 3, 2017 16:20
-
-
Save dogbert17/9563e21b80f6bea38c8a5c35b4dff4d7 to your computer and use it in GitHub Desktop.
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
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