Skip to content

Commit

Permalink
Merge pull request #136 from myfreeweb/patch-1
Browse files Browse the repository at this point in the history
Add examples for jbundler and sbt
  • Loading branch information
benjchristensen committed Feb 11, 2013
2 parents 8501c62 + 66fda05 commit 971e794
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
10 changes: 8 additions & 2 deletions language-adaptors/rxjava-jruby/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# JRuby Adaptor for RxJava


This adaptor allows 'org.jruby.RubyProc' lambda functions to be used and RxJava will know how to invoke them.
This adaptor allows `org.jruby.RubyProc` lambda functions to be used and RxJava will know how to invoke them.

This enables code such as:

```ruby
Observable.toObservable("one", "two", "three")
.take(2)
.subscribe(lambda{|arg| puts arg})
.subscribe(lambda { |arg| puts arg })
```

# Binaries
Expand All @@ -30,3 +30,9 @@ and for Ivy:
```xml
<dependency org="com.netflix.rxjava" name="rxjava-jruby" rev="x.y.z" />
```

and for JBundler:

```ruby
jar 'com.netflix.rxjava:rxjava-ruby', 'x.y.z'
```
8 changes: 8 additions & 0 deletions language-adaptors/rxjava-scala/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,11 @@ and for Ivy:
```xml
<dependency org="com.netflix.rxjava" name="rxjava-scala" rev="x.y.z" />
```

and for sbt:

```scala
libraryDependencies ++= Seq(
"com.netflix.rxjava" % "rxjava-scala" % "x.y.z"
)
```

0 comments on commit 971e794

Please sign in to comment.