module Berater::Utils

Public Instance Methods

convenience_fn(klass, *args, **opts, &block) click to toggle source
# File lib/berater/utils.rb, line 45
def convenience_fn(klass, *args, **opts, &block)
  limiter = klass.new(*args, **opts)
  if block_given?
    limiter.limit(&block)
  else
    limiter
  end
end
to_msec() click to toggle source
# File lib/berater/utils.rb, line 6
def to_msec
  Berater::Utils.to_msec(self)
end