Sha256: e0429c39db2907f681a9e0f0abbadb3debe49e4c17d15fe69a628f5cdba1d028

Contents?: true

Size: 298 Bytes

Versions: 4

Compression:

Stored size: 298 Bytes

Contents

#!/usr/bin/env ruby

require_relative '../lib/opener/opinion_detectors/base'

# STDIN.tty? returns `false` if data is being piped into the current process.
if STDIN.tty?
  input = nil
else
  input = STDIN.read
end

kernel = Opener::OpinionDetectors::Base.new(:args => ARGV)

puts kernel.run(input)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
opener-opinion-detector-base-2.3.1 bin/opinion-detector-base
opener-opinion-detector-base-2.3.0 bin/opinion-detector-base
opener-opinion-detector-base-2.2.1 bin/opinion-detector-base
opener-opinion-detector-base-2.2.0 bin/opinion-detector-base