KeyMangler example app
[scpubgit/DKit.git] / lib / DX / RuleSet.pm
index 0fada41..ba0f3c5 100644 (file)
@@ -72,19 +72,19 @@ sub _expand_op_cut { return DX::Op::Cut->new }
 sub _expand_op_fail { return DX::Op::Backtrack->new }
 
 sub _expand_op_not {
-  my ($self, @contents) = @_;
+  my ($self, $contents) = @_;
   my $cut = DX::Op::Cut->new(next => DX::Op::Backtrack->new);
   DX::Op::Not->new(
-    body => $self->expand_and_link($cut, @contents)
+    body => $self->expand_and_link($cut, @$contents)
   );
 }
 
 sub _expand_op_findall {
-  my ($self, $coll_name, $var_name, @contents) = @_;
+  my ($self, $coll_name, $var_name, $contents) = @_;
   DX::Op::FindAll->new(
     coll_name => $coll_name,
     var_name => $var_name,
-    body => $self->expand_and_link(DX::Op::Return->new, @contents),
+    body => $self->expand_and_link(DX::Op::Return->new, @$contents),
   );
 }