Skip to content

Commit 56a00ec

Browse files
authored
Update method_chaining.rb
1 parent 35b5a86 commit 56a00ec

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

external_library/java/hype/method_chaining.rb

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
# encoding: utf-8
2-
load_library :hype
3-
include_package 'hype'
1+
#!/usr/bin/env jruby
2+
require 'picrate'
3+
4+
# The sketch class
5+
class MethodChaining < Processing::App
6+
7+
load_library :hype
8+
%w[H HRect].freeze.each do |klass|
9+
java_import "hype.#{klass}"
10+
end
411

512
def settings
613
size(640, 640)
@@ -54,3 +61,6 @@ def setup
5461
stroke(color('#0095a8'))
5562
line(0, height / 2, width, height / 2)
5663
end
64+
end
65+
66+
MethodChaining.new

0 commit comments

Comments
 (0)