Skip to content

Commit

Permalink
Update README to better reflect usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Nov 12, 2010
1 parent 0230a9f commit 24eae5e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
Usage:

* Build the ClojureLibrary.java
* Put the resulting classes and clojure's jar in CLASSPATH
* Run JRuby and instantiate ClojureLibrary and call the load method, passing the JRuby runtime
1. Install the gem
2. Extend Clojure::Object

You will now have a Clojure::Object class. Extending it will produce Ruby classes with all instance variables as Clojure Refs, so they work appropriately with dosync {} (also provided).
A top-level method called dosync will be defined that takes a block of code, and your class will have transactional semantics for its instance variables.

0 comments on commit 24eae5e

Please sign in to comment.