Class: Terminalwire::V2::Server::Terminal::Stream

Inherits:
Data
  • Object
show all
Defined in:
lib/terminalwire/v2/server/terminal.rb

Overview

A standard stream and what it's connected to. Kind is fixed for the session (a stream doesn't turn from a pipe into a tty mid-run).

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



16
17
18
# File 'lib/terminalwire/v2/server/terminal.rb', line 16

def kind
  @kind
end

Instance Method Details

#file?Boolean

Returns:

  • (Boolean)


19
# File 'lib/terminalwire/v2/server/terminal.rb', line 19

def file? = kind == "file"

#null?Boolean

Returns:

  • (Boolean)


20
# File 'lib/terminalwire/v2/server/terminal.rb', line 20

def null? = kind == "null"

#pipe?Boolean

Returns:

  • (Boolean)


18
# File 'lib/terminalwire/v2/server/terminal.rb', line 18

def pipe? = kind == "pipe"

#tty?Boolean

Returns:

  • (Boolean)


17
# File 'lib/terminalwire/v2/server/terminal.rb', line 17

def tty?  = kind == "tty"