Method: Psych.detect_implicit
- Defined in:
- lib/psych/deprecated.rb
.detect_implicit(thing) ⇒ Object
35 36 37 38 39 40 41 |
# File 'lib/psych/deprecated.rb', line 35 def self.detect_implicit thing warn "#{caller[0]}: detect_implicit is deprecated" if $VERBOSE return '' unless String === thing return 'null' if '' == thing ss = ScalarScanner.new(ClassLoader.new) ss.tokenize(thing).class.name.downcase end |