Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby check if constant exists

Object.const_defined?(const.to_s)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ruby #check #constant #exists
ADD COMMENT
Topic
Name
3+2 =