diff options
Diffstat (limited to 'demo/demo_dump.rb')
-rw-r--r-- | demo/demo_dump.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/demo/demo_dump.rb b/demo/demo_dump.rb new file mode 100644 index 0000000..b848dcd --- /dev/null +++ b/demo/demo_dump.rb @@ -0,0 +1,8 @@ +require 'coderay'
+
+puts CodeRay.
+ scan("puts 'Hello, world!'", :ruby).
+ compact.
+ dump.
+ undump.
+ html(:wrap => :div)
|