predicator 0.0.0 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +0,0 @@
1
- module Predicator
2
- class Transform < Parslet::Transform
3
- rule(:boolean => simple(:b)) { !!(b.match /true/) }
4
- rule(:array => subtree(:a)) { Array(a) }
5
-
6
- rule(:not => subtree(:sub)) { Predicator::Predicates::Not.new sub }
7
- rule(:or => subtree(:sub)) { Predicator::Predicates::Or.new sub }
8
- rule(:and => subtree(:sub)) { Predicator::Predicates::And.new sub }
9
- end
10
- end