I’m writing some code which needs to do something unusual when it
encounters an if, an else, or an end.
def if
“asdf”
end
=> nil
if
?> true
end
=> nil
The ?> line comes up because if appears to not be a method but an
operator or something similar, so my override does nada.
Is there any way to do this? It looks as if I have to either rethink
my strategy or write some kind of parser.
–
Giles B.
Podcast: http://hollywoodgrit.blogspot.com
Blog: http://gilesbowkett.blogspot.com
Portfolio: http://www.gilesgoatboy.org
Tumblelog: http://giles.tumblr.com