Skip to content
Browse files

Removed question marks for tags not properly recognized keys.

  • Loading branch information...
1 parent 06a0cae commit fa9a1582d7c449aaad20279344b67ac2cff5a636 Roman Kamyk jr committed Nov 16, 2009
Showing with 1 addition and 9 deletions.
  1. +1 −9 lib/ya2yaml.rb
View
10 lib/ya2yaml.rb
@@ -58,15 +58,7 @@ def emit(obj,level)
end
hash_keys.collect {|k|
key = emit(k,level + 1)
- if (
- is_one_plain_line?(key) ||
- key =~ /\A(#{REX_BOOL}|#{REX_FLOAT}|#{REX_INT}|#{REX_NULL})\z/x
- )
- indent + key + ': ' + emit(obj[k],level + 1)
- else
- indent + '? ' + key +
- indent + ': ' + emit(obj[k],level + 1)
- end
+ indent + key + ': ' + emit(obj[k],level + 1)
}.join('')
end
when 'NilClass'

0 comments on commit fa9a158

Please sign in to comment.
Something went wrong with that request. Please try again.