DEV Community

Discussion on: Can you…? - Calculator

Collapse
 
vulcanwm profile image
Medea

Wow .sum is a function in Ruby? That made it so easy.

Collapse
 
ben profile image
Ben Halpern

Yeah, that's sort of a cheat — but Ruby's like that 🤣

eval("10 + 10") also would have been a quick answer here, but that seemed just a bit too easy.

Thread Thread
 
vulcanwm profile image
Medea • Edited

Oh- wow