class ReplRunner::Config

Attributes

commands[RW]

Public Class Methods

new(*commands) click to toggle source
# File lib/repl_runner/config.rb, line 5
def initialize(*commands)
  @commands = commands
end

Public Instance Methods

return_char(char) click to toggle source
# File lib/repl_runner/config.rb, line 17
def return_char(char)
  @return_char = char
end
startup_timeout(command) click to toggle source
# File lib/repl_runner/config.rb, line 13
def startup_timeout(command)
  @startup_timeout = command
end
sync_stdout(string) click to toggle source
# File lib/repl_runner/config.rb, line 21
def sync_stdout(string)
  @sync_stdout = string
end
terminate_command(command) click to toggle source
# File lib/repl_runner/config.rb, line 9
def terminate_command(command)
  @terminate_command = command
end
to_options() click to toggle source
# File lib/repl_runner/config.rb, line 25
def to_options
  {
    terminate_command:  @terminate_command,
    startup_timeout:    @startup_timeout,
    return_char:        @return_char,
    sync_stdout:        @sync_stdout
  }
end