A
Alex Polite
I'm just starting out with ruby.
I'm trying to make an array of arrays containing [a pattern, a string,
a function]
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 =3D [
[/:BEGIN
.*)/, "DTSTART", Df.datestr2time ],
[/
UE
.*)/, "DUE", Df.datestr2time]
]
alex
I'm trying to make an array of arrays containing [a pattern, a string,
a function]
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 =3D [
[/:BEGIN
[/
]
alex