Method: Cmds#input

Defined in:
lib/cmds.rb

#inputString | #read (readonly)

string or readable IO-like object to use as default input to the command.

#prepare and the methods that invoke it (like #capture, #stream, etc.) accept an optional block that will override this value if present.

Returns:

  • (String | #read)


85
86
87
# File 'lib/cmds.rb', line 85

def input
  @input
end