ruby decision table quickstart
Update : there is a new blog post covering this Ruby decision table subject, with updated information.
The information in this current blog post is a bit out of date.
At first, install the necessary OpenWFEru gems :
sudo gem install openwferu openwferu-extras
Here is the quickstart :
(code here).
It should output something like :
weather : raining, month : december
=> take umbrella ? yesweather : sunny, month : december
=> take umbrella ? noweather : cloudy, month : may
=> take umbrella ? yes
If you take a closer look at the code, you’ll see that it taps directly the CSV view of a Google Spreadsheet. Quite handy.
More documentation *soon* on this page about Decision Tables.
Update : Adapted the head of the post, sudo gem install openwferu openwferu-extras
will just work.
[…] and ‘accumulate‘ into OpenWFEru’s Ruby CSV decision tables (see that post for an introduction to […]
decision, accumulation « processi
October 12, 2007 at 12:26 am