Canonicalize input in initialize.
This commit is contained in:
parent
01b2be755c
commit
3ff9c5335d
@ -41,7 +41,7 @@ module Hbc
|
|||||||
@executable = executable
|
@executable = executable
|
||||||
@args = args
|
@args = args
|
||||||
@sudo = sudo
|
@sudo = sudo
|
||||||
@input = input
|
@input = [*input]
|
||||||
@print_stdout = print_stdout
|
@print_stdout = print_stdout
|
||||||
@print_stderr = print_stderr
|
@print_stderr = print_stderr
|
||||||
@must_succeed = must_succeed
|
@must_succeed = must_succeed
|
||||||
@ -116,7 +116,7 @@ module Hbc
|
|||||||
end
|
end
|
||||||
|
|
||||||
def write_input_to(raw_stdin)
|
def write_input_to(raw_stdin)
|
||||||
[*input].each(&raw_stdin.method(:print))
|
input.each(&raw_stdin.method(:write))
|
||||||
end
|
end
|
||||||
|
|
||||||
def each_line_from(sources)
|
def each_line_from(sources)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user