Sha256: e1af7f3fd970c28e960453e910d9aed29b5c068266dd1dd05fb6dd2a62f0dfa4
Contents?: true
Size: 329 Bytes
Versions: 4
Compression:
Stored size: 329 Bytes
Contents
# frozen_string_literal: true module Rordash module ObjectUtil class << self def to_class(classname) classname.constantize if classname.is_a?(String) classname end def to_classname(klass) return klass.name if Object.const_defined?(klass) nil end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rordash-0.1.3 | lib/rordash/object_util.rb |
rordash-0.1.2 | lib/rordash/object_util.rb |
rordash-0.1.1 | lib/rordash/object_util.rb |
rordash-0.1.0 | lib/rordash/object_util.rb |