Core libraries and tools part for pro architecture. It's a submodule - use from this perspective http://git.maniak.pro/madmaniak/pro
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
345 B

class Disque
DEFAULTS = {
getjob: { count: 16, timeout: 0 }
}
def que(method, *attributes)
@count += 1
pick_client!
call method, *attributes
end
end
class String
def camelize
split('/').map{ |word| word.split('_').map(&:capitalize).join }.join('::')
end
def constantize
Object.const_get self
end
end