module ConstantDefinedStringRefinement
Public Instance Methods
constant_defined?()
click to toggle source
# File lib/refinements/constant_defined_string_refinement.rb, line 3 def constant_defined? begin !!Object.const_get(self) rescue false # Swallow expected error if not defined end end