We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5207ae7 commit 974edb2Copy full SHA for 974edb2
1 file changed
lib/propane/app.rb
@@ -9,6 +9,7 @@ module Propane
9
Java::Monkstone::PropaneLibrary.load(JRuby.runtime)
10
SKETCH_ROOT = File.absolute_path('.')
11
12
+ # A utility to facillitate rendering of Vec2D and Vec3D as vertex
13
module Render
14
java_import 'monkstone.vecmath.AppRender'
15
java_import 'monkstone.vecmath.ShapeRender'
@@ -110,8 +111,7 @@ def library_loaded?(library_name)
110
111
def initialize(options = {}, arguments = [])
112
# Guard against invalid input.
113
proxy_java_fields
- raise TypeError unless options.is_a? Hash
114
- raise TypeError unless arguments.is_a? Array
+ raise TypeError unless options.is_a?(Hash) && arguments.is_a?(Array)
115
# Set up the sketch.
116
super()
117
post_initialize(options)
0 commit comments