Sha256: 62b1046907f30229042c0afe315eacaee2c30826c817990d5b3f09d05bfe83ca

Contents?: true

Size: 650 Bytes

Versions: 1

Compression:

Stored size: 650 Bytes

Contents

module Shellplay
  class Screen

    attr_reader :stdin, :stdout, :stderr, :display, :timespent, :displaycommand

    def initialize
      @displaycommand = true
      @stdin = nil
      @stdout = nil
      @stderr = nil
      @timespent = 0
    end

    def import(hash)
      @displaycommand = hash['displaycommand']
      @stdin = hash['stdin']
      @stdout = hash['stdout']
      @stderr = hash['stderr']
      @timespent = hash['timespent']
    end

    def export
      {
        displaycommand: @displaycommand,
        stdin: @stdin,
        stdout: @stdout,
        stderr: @stderr,
        timespent: @timespent
      }
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shellplay-0.0.3 lib/shellplay/screen.rb