diff options
Diffstat (limited to 'sample/encoder.rb')
-rw-r--r-- | sample/encoder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/encoder.rb b/sample/encoder.rb index 267676b..22eaa22 100644 --- a/sample/encoder.rb +++ b/sample/encoder.rb @@ -14,7 +14,7 @@ puts stats # alternative 1
tokens = CodeRay.scan SAMPLE, :ruby
-encoder = CodeRay.encoder(:tokens)
+encoder = CodeRay.encoder(:json)
textual = encoder.encode_tokens tokens
puts
puts 'Original text:'
|