# File lib/ya2yaml.rb, line 24 def _ya2yaml(obj) raise 'set $KCODE to "UTF8".' if (RUBY_VERSION < '1.9.0') && ($KCODE != 'UTF8') '--- ' + emit(obj, 1) + "\n" rescue SystemStackError raise ArgumentError, "ya2yaml can't handle circular references" end