You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by lo...@apache.org on 2012/10/11 07:17:33 UTC
[lucy-commits] svn commit: r1396906 - /lucy/trunk/clownfish/compiler/ruby/ext/example.rb
Author: logie
Date: Thu Oct 11 05:17:32 2012
New Revision: 1396906
URL: http://svn.apache.org/viewvc?rev=1396906&view=rev
Log:
Checking in a simple example on how the CFC compiler can be called in ruby
Added:
lucy/trunk/clownfish/compiler/ruby/ext/example.rb
Added: lucy/trunk/clownfish/compiler/ruby/ext/example.rb
URL: http://svn.apache.org/viewvc/lucy/trunk/clownfish/compiler/ruby/ext/example.rb?rev=1396906&view=auto
==============================================================================
--- lucy/trunk/clownfish/compiler/ruby/ext/example.rb (added)
+++ lucy/trunk/clownfish/compiler/ruby/ext/example.rb Thu Oct 11 05:17:32 2012
@@ -0,0 +1,7 @@
+#! /usr/bin/env ruby
+
+# Simple example on how to call CFC in ruby
+require_relative 'Clownfish/CFC'
+
+hierarchy = Clownfish::CFC::Model::Hierarchy.new("autogen")
+hierarchy.build