Answers for "ruby check if var exist"

1

ruby check if exists

apple = 1

defined?(apple)
# "local-variable"

defined?(bacon)
# nil
Posted by: Guest on June-01-2020

Browse Popular Code Answers by Language