Class: Bmg::Sequel::PredicateTranslator

Inherits:
Sexpr::Processor
  • Object
show all
Includes:
Predicate::ToSequel::Methods
Defined in:
lib/bmg/sequel/predicate_translator.rb

Instance Method Summary collapse

Constructor Details

#initialize(parent) ⇒ PredicateTranslator

Returns a new instance of PredicateTranslator.



6
7
8
# File 'lib/bmg/sequel/predicate_translator.rb', line 6

def initialize(parent)
  @parent = parent
end

Instance Method Details

#on_exists(sexpr) ⇒ Object



16
17
18
# File 'lib/bmg/sequel/predicate_translator.rb', line 16

def on_exists(sexpr)
  @parent.apply(sexpr.last).exists
end

#on_opaque(sexpr) ⇒ Object



12
13
14
# File 'lib/bmg/sequel/predicate_translator.rb', line 12

def on_opaque(sexpr)
  @parent.apply(sexpr.last)
end