summaryrefslogtreecommitdiff
path: root/demo/demo_stream.rb
blob: b1d85600ad165f2fd27f00ef7c874804db118bb6 (plain)
1
2
3
4
5
6
7
8
$: << '..'
require 'coderay'

e = CodeRay.encoder(:html)
t = e.encode_stream('a LOT of :code', :ruby)

puts t
p t.class