Skip to content

Instantly share code, notes, and snippets.

@pierre
Created July 20, 2011 17:09
Show Gist options
  • Save pierre/1095375 to your computer and use it in GitHub Desktop.
Save pierre/1095375 to your computer and use it in GitHub Desktop.
Ruby Smile extension
ruby-1.8.7-p334 :001 > require 'smile'
=> true
ruby-1.8.7-p334 :002 > p = Smile::Parser.new("data.smile")
=> #<Smile::Parser:0x100362210>
ruby-1.8.7-p334 :003 > puts p.check_header
true
=> nil
ruby-1.8.7-p334 :008 > p = Smile::Parser.new("dummy.txt")
=> #<Smile::Parser:0x1003324e8>
ruby-1.8.7-p334 :009 > puts p.check_header
false
=> nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment