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 = "  \#{paths.join(\"\\n\")}\n  TEXT\n\n  file = Session::Controls::Path::File::Create.(content)\n\n  ::File.open(file, 'r')\nend\n"

.contentsObject



20
21
22
23
24
# File 'lib/test_bench/executable/controls/standard_input.rb', line 20

def self.contents
  "  \#{Path.example}\n  TEXT\nend\n"