class Proc
Adapted from Matt Sears
Public Instance Methods
jcr_callback(callable, *args)
click to toggle source
# File lib/jcr/evaluate_rules.rb, line 36 def jcr_callback(callable, *args) self === Class.new do method_name = callable.to_sym define_method(method_name) { |&block| block.nil? ? true : block.call(*args) } define_method("#{method_name}?") { true } def method_missing(method_name, *args, &block) false; end end.new end
method_missing(method_name, *args, &block)
click to toggle source
# File lib/jcr/evaluate_rules.rb, line 41 def method_missing(method_name, *args, &block) false; end