class Object

def infobar

def infobar
  ::Infobar.instance
end

def with_infobar(**opts, &block)

def with_infobar(**opts, &block)
  case
  when total = opts[:total].ask_and_send(:to_sym)
    opts[:total] = __send__(total)
  when opts[:total].nil?
    opts[:total] = size
  end
  Infobar.(**opts)
  block and each(&block)
  self
end