Sha256: 55c05d836bdf7e50bdd4e351feb52b28dcdf12a7cd99848ba6a7940f0b1fbb73
Contents?: true
Size: 633 Bytes
Versions: 1
Compression:
Stored size: 633 Bytes
Contents
module Shellplay class Screen attr_reader :stdin, :stdout, :stderr, :display, :timespent 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.2 | lib/shellplay/screen.rb |