Hi guys,
I'm trying to create one workflow using a script filter with ruby. When i put everything in alfred script box it works fine, but i'd like to keep thing organized, so I tried to create 3 separate files, that are placed in workflow folder, and then use alfred script box just to call the methods defined in this files. Something like this:
require_relative "file1"
require_relative "file2"
require_relative "file3"
...
puts some_method(param)
But when I do this, I get this exception:
[ERROR: alfred.workflow.input.scriptfilter] Code 1: -e:1:in `require_relative': cannot infer