module Resque::Helpers

def classify(dashed_word)

Given a word with dashes, returns a camel cased version of it.
def classify(dashed_word)
  Resque.classify(dashed_word)
end

def constantize(camel_cased_word)

Tries to find a constant with the name specified in the argument string
def constantize(camel_cased_word)
  Resque.constantize(camel_cased_word)
end

def decode(object)

Given a string, returns a Ruby object.
def decode(object)
  Resque.decode(object)
end

def encode(object)

queue.
Given a Ruby object, returns a string suitable for storage in a
def encode(object)
  Resque.encode(object)
end

def redis

Direct access to the Redis instance.
def redis
  # No infinite recursions, please.
  # Some external libraries depend on Resque::Helpers being mixed into
  # Resque, but this method causes recursions. If we have a super method,
  # assume it is canonical. (see #1150)
  return super if defined?(super)
  Resque.redis
end