lib/console_runner.rb in console_runner-0.1.10 vs lib/console_runner.rb in console_runner-0.1.11
- old
+ new
@@ -50,10 +50,9 @@
klass_obj.send(action.name, *method_params)
when :instance
init_method = trol_config.init_method
init_params = []
init_params = init_method.params_array if init_method
- # TODO catch errors
obj = klass_obj.new(*init_params)
obj.send(action.name, *method_params)
else
raise ConsoleRunnerError, "Unknown method type: #{method_type}"
end
\ No newline at end of file