Module: Capybara::AsyncRunner::Commands::Templates

Included in:
Capybara::AsyncRunner::Command
Defined in:
lib/capybara/async_runner/commands/templates.rb

Instance Method Summary collapse

Instance Method Details

#erbObject



5
6
7
8
9
# File 'lib/capybara/async_runner/commands/templates.rb', line 5

def erb
  fullname = self.class.file_to_run + '.js.erb'
  filepath = Capybara::AsyncRunner.config.commands_directory.join(fullname)
  File.read(filepath)
end