Class: CEL::Program

Inherits:
Object
  • Object
show all
Defined in:
lib/cel.rb

Instance Method Summary collapse

Instance Method Details

#__native_executeObject



37
# File 'lib/cel.rb', line 37

alias_method :__native_execute, :execute

#call(context = nil) ⇒ Object



45
46
47
# File 'lib/cel.rb', line 45

def call(context = nil)
  execute(context)
end

#execute(context = nil) ⇒ Object



39
40
41
42
43
# File 'lib/cel.rb', line 39

def execute(context = nil)
  return __native_execute if context.nil?

  execute_with_context(context)
end