On Tue, Jan 8, 2013 at 4:46 AM, Josh Cheek <[email protected]> wrote: > Hi, I want to be able to identify whether a line of code will return, > because I want to modify it to capture it's return value. If it returns, > this results in a syntax error:
Why do you need to modify the line? Can't you catch it at the calling site or by decorating the method? Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/ -- You received this message because you are subscribed to the Google Groups ruby-talk-google group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at https://groups.google.com/d/forum/ruby-talk-google?hl=en
