I’m just starting out with ruby.
I’m trying to make an array of arrays containing [a pattern, a string,
Patterns and strings went fine but when I put in a function ruby tries
to eval it and complains about not getting right number of arguments.
Is there any way to escape a method so that you can put it in a list
or pass it as an argument to another function?
pats = [
[/:BEGIN:(.)/, “DTSTART”, Df.datestr2time ],
[/:DUE:(.)/, “DUE”, Df.datestr2time]