module Gemmy::Patches::ProcPatch::InstanceMethods::Call

Public Instance Methods

call(*args, &blk) click to toggle source
# File lib/gemmy/patches/proc_patch.rb, line 7
def call(*args, &blk)
  this = self
  if (opts=args.last).is_a?(Hash) && (proc=opts[:threaded_if])
    if proc.is_a?(Proc) && proc.call
      return Thread.new { self.call(*args, &blk) }
    end
  end
  self.call(*args, &blk)
end