Add inling for native Code trait
[gitmo/Moose.git] / lib / Moose / Meta / Attribute / Native / Trait / Code.pm
index a67f1c5..07ac6e8 100644 (file)
@@ -1,22 +1,19 @@
 package Moose::Meta::Attribute::Native::Trait::Code;
 use Moose::Role;
-use Moose::Meta::Attribute::Native::MethodProvider::Code;
 
 our $VERSION   = '1.14';
 $VERSION = eval $VERSION;
 our $AUTHORITY = 'cpan:STEVAN';
 
-with 'Moose::Meta::Attribute::Native::Trait';
+use Moose::Meta::Method::Accessor::Native::Code::execute;
+use Moose::Meta::Method::Accessor::Native::Code::execute_method;
 
-has method_provider => (
-    is        => 'ro',
-    isa       => 'ClassName',
-    predicate => 'has_method_provider',
-    default   => 'Moose::Meta::Attribute::Native::MethodProvider::Code',
-);
+with 'Moose::Meta::Attribute::Native::Trait';
 
 sub _helper_type { 'CodeRef' }
 
+sub _native_type { 'Code' }
+
 no Moose::Role;
 
 1;