kendear
2007-Sep-15 06:48 UTC
one line to print the statement AS WELL AS the evaluated value like in C
i wonder in Ruby, is there a line method to do something like in C
print_val("Array[3] + 1")
and get the printout of
Array[3] + 1 is 3.345
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---