Skip to content

Commit

Permalink
ruby 1.9 compat: Updated README example code to work with both ruby 1…
Browse files Browse the repository at this point in the history
….8 and 1.9.
  • Loading branch information
kch committed Jan 11, 2010
1 parent 3cf7615 commit 6e79d13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README
Expand Up @@ -8,7 +8,8 @@ Ya2YAML is "yet another to_yaml". It emits YAML document with complete UTF8 supp

*code*:

$KCODE = 'UTF8'
# encoding: UTF-8
$KCODE = 'UTF8' unless RUBY_VERSION >= '1.9'
require 'ya2yaml'

obj = [
Expand Down

0 comments on commit 6e79d13

Please sign in to comment.