Class: Rundoc::CodeCommand::Background::StdinWriteArgs

Inherits:
Object
  • Object
show all
Defined in:
lib/rundoc/code_command/background/stdin_write.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(contents, name:, wait:, timeout: 5, ending: $/) ⇒ StdinWriteArgs

Returns a new instance of StdinWriteArgs.



7
8
9
10
11
12
13
# File 'lib/rundoc/code_command/background/stdin_write.rb', line 7

def initialize(contents, name:, wait:, timeout: 5, ending: $/)
  @contents = contents
  @name = name
  @wait = wait
  @timeout = Integer(timeout)
  @ending = ending
end

Instance Attribute Details

#contentsObject (readonly)

Returns the value of attribute contents.



5
6
7
# File 'lib/rundoc/code_command/background/stdin_write.rb', line 5

def contents
  @contents
end

#endingObject (readonly)

Returns the value of attribute ending.



5
6
7
# File 'lib/rundoc/code_command/background/stdin_write.rb', line 5

def ending
  @ending
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/rundoc/code_command/background/stdin_write.rb', line 5

def name
  @name
end

#timeoutObject (readonly)

Returns the value of attribute timeout.



5
6
7
# File 'lib/rundoc/code_command/background/stdin_write.rb', line 5

def timeout
  @timeout
end

#waitObject (readonly)

Returns the value of attribute wait.



5
6
7
# File 'lib/rundoc/code_command/background/stdin_write.rb', line 5

def wait
  @wait
end