public
Description: Code as Art, Art as Code. Processing and Ruby are meant for each other.
Homepage: http://github.com/jashkenas/ruby-processing/wikis
Clone URL: git://github.com/jashkenas/ruby-processing.git
Search Repo:
Added hooks for live coding.
jashkenas (author)
Sat May 03 11:17:42 -0700 2008
commit  05dde63f7f6377f5afc34afc778fbe232d4466fc
tree    8397fc02efe3a29756055b321a160e55f02d0a76
parent  7ef4fd0af0d5cd0e5d9021aef1b85a1876653eae
...
7
8
9
10
 
11
...
7
8
9
 
10
11
0
@@ -7,6 +7,6 @@
0
 then
0
   java -cp script/base_files/jruby-complete.jar org.jruby.Main script/live_files/live_coding.rb "$1"
0
 else
0
- java -cp script/base_files/jruby-complete.jar org.jruby.Main script/live_files/empty_coding.rb
0
+ java -cp script/base_files/jruby-complete.jar org.jruby.Main script/live_files/live_coding.rb
0
 fi
...
1
2
3
4
5
6
...
 
 
 
 
 
 
0
@@ -1,7 +1 @@
0
-# If you don't pass in a class, it just starts up IRB with
0
-# Ruby-Processing loaded.
0
-
0
-require 'irb'
0
-require 'ruby-processing'
0
-IRB.start
...
1
2
 
 
3
4
5
 
6
7
8
 
 
 
 
...
1
 
2
3
4
5
 
6
7
 
 
8
9
10
11
0
@@ -1,9 +1,12 @@
0
 # An IRB shell for live coding.
0
-# This flavor comes loaded with your sketch.
0
+# This flavor will either load up empty Ruby-Processing,
0
+# or will start with your sketch.
0
 
0
 require 'irb'
0
-require ARGV[0]
0
+sketch = ARGV[0] || 'ruby-processing'
0
 ARGV[0] = nil
0
-APP = Processing::App.current
0
-IRB.start
0
+require sketch
0
+@app = Processing::App.current
0
+IRB.setup(__FILE__)
0
+IRB.start()

Comments

    No one has commented yet.