Sha256: 8ca70232a2c5ae9170155d110841377aa854720d72a0aa09b2946fec818bcd2b
Contents?: true
Size: 418 Bytes
Versions: 3
Compression:
Stored size: 418 Bytes
Contents
#!/usr/bin/env ruby require 'expectr' require 'expectr/interpreter' class Expectr module Main extend self # Public: Read and run source passed in to the interpreter. # # Returns nothing. def run src = ARGF.read exit 2 unless src interpreter = Expectr::Interpreter.new(src.untaint) interpreter.filename = $FILENAME interpreter.run end end end Expectr::Main.run
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
expectr-2.0.2 | bin/expectr |
expectr-2.0.1 | bin/expectr |
expectr-2.0.0 | bin/expectr |