module Eceval

Constants

BEGIN_CODE_BLOCK
CONTINUATION_MARKER
END_CODE_BLOCK
EVAL_EXCEPTION_MARKER
EVAL_MARKER
NEW_SCOPE_DIRECTIVE
NoExceptionRaised
STDOUT_MARKER
VERSION

Public Class Methods

augment(io, out: $stdout, filename: "[String]", lineno: 1) click to toggle source
# File lib/eceval.rb, line 17
def self.augment(io, out: $stdout, filename: "[String]", lineno: 1)
  context = EvaluationContext.new(filename: filename, lineno: lineno)
  loop do
    break if io.eof?
    line = io.gets
    out.puts(context.process_line(line.chomp))
  end
end