Module: TestBench::Executable::Controls::StandardInput::Create
- Defined in:
- lib/test_bench/executable/controls/standard_input.rb
Class Method Summary collapse
Class Method Details
.call(*paths) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/test_bench/executable/controls/standard_input.rb', line 6 def self.call(*paths) if paths.empty? paths = Path.examples end content = <<~TEXT #{paths.join("\n")} TEXT file = Session::Controls::Path::File::Create.(content) ::File.open(file, 'r') end |
.contents ⇒ Object
20 21 22 23 24 |
# File 'lib/test_bench/executable/controls/standard_input.rb', line 20 def self.contents <<~TEXT #{Path.example} TEXT end |