Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 29 lines (20 sloc) 0.892 kb
d133b9f @chrishunt Update README with rake instructions
chrishunt authored
1 # Ruby from Clojure
2f89f05 @jsl First
authored
2
3 This is a simple example of calling Ruby from Clojure. It contains a simple
4 JRuby project and a Clojure project:
5
359810a @chrishunt Monospace project directories in README
chrishunt authored
6 * `steel_city` - a Ruby project that returns the speakers for the given day
2f89f05 @jsl First
authored
7 in the Steel City Ruby Conference 2012
359810a @chrishunt Monospace project directories in README
chrishunt authored
8 * `speaker_selector` - Returns a "top" speaker for the given day using a
2f89f05 @jsl First
authored
9 sophisticated algorithm (ie, random selection)
10
d133b9f @chrishunt Update README with rake instructions
chrishunt authored
11 ## Running
2f89f05 @jsl First
authored
12
d133b9f @chrishunt Update README with rake instructions
chrishunt authored
13 $ rake
2f89f05 @jsl First
authored
14
d133b9f @chrishunt Update README with rake instructions
chrishunt authored
15 => (import com.steelcity.Schedule)
16 => (top-speaker "Friday")
17 => (top-speaker "Saturday")
2f89f05 @jsl First
authored
18
d133b9f @chrishunt Update README with rake instructions
chrishunt authored
19 ## How does this work?
0e0cfd1 @jsl Running instructions
authored
20
d133b9f @chrishunt Update README with rake instructions
chrishunt authored
21 For detailed instructions on how to get this working with your own Ruby code,
4bfda35 @chrishunt Add link to Rakefile in README
chrishunt authored
22 have a look at the
23 [`Rakefile`](https://github.com/jsl/ruby_from_clojure/blob/master/Rakefile)
0e0cfd1 @jsl Running instructions
authored
24
d133b9f @chrishunt Update README with rake instructions
chrishunt authored
25 rake clean # Remove build artifacts
26 rake compile # Compile Ruby into Java bytecode
27 rake install # Install and copy to Clojure project
28 rake run # Start leiningen repl
Something went wrong with that request. Please try again.