class Opal::CLI

def evals_or_file

evals, stdin or a filepath.
Internal: Yields a string of source code and the proper filename for either
def evals_or_file
  # --library
  return if lib_only
  if evals.any?
    yield evals.join("\n"), '-e'
  elsif file && (filename != '-' || evals.empty?)
    yield file.read, filename
  end
end