Sha256: 2a81818a921fb26f0f1206cdeadd4184904773dc22030b7f2a66ba883664b85b
Contents?: true
Size: 244 Bytes
Versions: 28
Compression:
Stored size: 244 Bytes
Contents
def convert_to_constant(classes) constant = Object classes.split('::').each do |klass| constant = constant.const_get klass end return constant end def unescape(string) string.gsub('\n', "\n").gsub('\"', '"').gsub('\e', "\e") end
Version data entries
28 entries across 28 versions & 1 rubygems