-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update README to better reflect usage.
- Loading branch information
Showing
1 changed file
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |