Shlomi Fish avatar Shlomi Fish committed f01a222

Convert more.

Comments (0)

Files changed (3)

Text-Qantor/Build.PL

     license             => 'mit',
     dist_author         => 'Shlomi Fish <shlomif@cpan.org>',
     dist_version_from   => 'lib/Text/Qantor.pm',
+    requires => {
+        'Carp' => 0,
+        'Exporter' => 0,
+        'File::Spec' => 0,
+        'Moose' => 0,
+        'XML::LibXML' => 0,
+        'XML::LibXSLT' => 0,
+        'XML::Writer' => 0,
+        'strict' => 0,
+        'vars' => 0,
+        'version' => 0,
+        'warnings' => 0,
+    },
     build_requires => {
         'Moose' => 0,
         # 'Regexp::Grammars' => 0,

Text-Qantor/lib/Text/Qantor/Parser/Elem/Base.pm

 
 =cut
 
-use base 'Class::Accessor';
+use Moose;
 
-__PACKAGE__->mk_accessors(qw(
-        body
-        name
-    ));
+has 'body' => (is => 'rw', isa => 'Str');
+has 'name' => (is => 'rw', isa => 'Str');
 
 sub new
 {
     my $class = shift;
     my $self = {};
     bless $self, $class;
-    
+
     $self->_init(@_);
 
     return $self;

Text-Qantor/lib/Text/Qantor/Parser/Elem/ParaList.pm

 
 =cut
 
-use base 'Text::Qantor::Parser::Elem::Base';
+use Moose;
 
-__PACKAGE__->mk_accessors(qw(_list));
+extends( 'Text::Qantor::Parser::Elem::Base' );
+
+has '_list' => (is => 'rw', isa => 'ArrayRef',);
 
 sub _init
 {
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.