I'm becoming a fan of the following Ruby code idiom, where a single line of code evaluates whether something is true or false.
def interrogative_function?(args)
begin 1==1 rescue false end
end
Technology Agnostic Rubyist : Open Source Lights The Way
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment