Class: Rundoc::CodeCommand::Background::StdinWriteArgs
- Inherits:
-
Object
- Object
- Rundoc::CodeCommand::Background::StdinWriteArgs
- Defined in:
- lib/rundoc/code_command/background/stdin_write.rb
Instance Attribute Summary collapse
-
#contents ⇒ Object
readonly
Returns the value of attribute contents.
-
#ending ⇒ Object
readonly
Returns the value of attribute ending.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
-
#wait ⇒ Object
readonly
Returns the value of attribute wait.
Instance Method Summary collapse
-
#initialize(contents, name:, wait:, timeout: 5, ending: $/) ⇒ StdinWriteArgs
constructor
A new instance of StdinWriteArgs.
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
#contents ⇒ Object (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 |
#ending ⇒ Object (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 |
#name ⇒ Object (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 |
#timeout ⇒ Object (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 |
#wait ⇒ Object (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 |