Class: CommandTask
- Inherits:
-
Volt::Task
- Object
- Volt::Task
- CommandTask
- Defined in:
- app/browser_irb/tasks/command_task.rb
Instance Method Summary collapse
Instance Method Details
#run(command) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/browser_irb/tasks/command_task.rb', line 2 def run(command) begin Opal.compile(command, irb: true) rescue RuntimeError => e # Check to see if we have a parse error if e. =~ /An error occurred while compiling/ # Pass that we are continuing '...continue...' else raise end end end |