Class: CI::Queue::File
Instance Attribute Summary
Attributes inherited from Static
Instance Method Summary collapse
-
#initialize(path, **args) ⇒ File
constructor
A new instance of File.
Methods inherited from Static
#acknowledge, #empty?, #poll, #requeue, #size, #to_a
Constructor Details
#initialize(path, **args) ⇒ File
6 7 8 |
# File 'lib/ci/queue/file.rb', line 6 def initialize(path, **args) super(::File.readlines(path).map(&:strip).reject(&:empty?), **args) end |