Sha256: 30b14329cb023004f0d4e2fe184ab1627ce96c21fbbe05a490a5b9fec459196b
Contents?: true
Size: 502 Bytes
Versions: 10
Compression:
Stored size: 502 Bytes
Contents
module Quandl module Command class Task module Inputable extend ActiveSupport::Concern included do end module ClassMethods end def each_line_in_background(args, &block) args.each_line do |arg| background_job do block.call( arg ) end end end def args_or_stdin return args.join("\n") if args.first.present? $stdin end def file_or_stdin return File.open( args.first, 'r' ) if args.first.present? $stdin end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems