0

The title says it all and I'm just curious it this would be somehow possible.

Can you parse the string "DateTime.tomorrow" to the DateTime object DateTime.tomorrow? Would that somehow be possible?

I came across this thought while coding, but I solved it another way.

marcHoll90
  • 27
  • 5

1 Answers1

0

You can use eval for this, but it is usually discouraged, see: When is `eval` in Ruby justified?

Thomas
  • 31
  • 3