class Berater::Unlimiter
Public Class Methods
new(key = :unlimiter, *args, **opts)
click to toggle source
Calls superclass method
Berater::Limiter::new
# File lib/berater/unlimiter.rb, line 4 def initialize(key = :unlimiter, *args, **opts) super(key, Float::INFINITY, **opts) end
Public Instance Methods
to_s()
click to toggle source
# File lib/berater/unlimiter.rb, line 8 def to_s "#<#{self.class}>" end
Protected Instance Methods
acquire_lock(*)
click to toggle source
# File lib/berater/unlimiter.rb, line 18 def acquire_lock(*) Lock.new(Float::INFINITY, 0) end
capacity=(*)
click to toggle source
# File lib/berater/unlimiter.rb, line 14 def capacity=(*) @capacity = Float::INFINITY end