38
39
40
41
42
43
|
# File 'lib/cel/environment.rb', line 38
def evaluate(expr, bindings = nil)
context = Context.new(@declarations, bindings)
expr = @parser.parse(expr) if expr.is_a?(::String)
@checker.check(expr)
Program.new(context).evaluate(expr)
end
|