Skip to content

Commit 974edb2

Browse files
committed
stuff
1 parent 5207ae7 commit 974edb2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/propane/app.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module Propane
99
Java::Monkstone::PropaneLibrary.load(JRuby.runtime)
1010
SKETCH_ROOT = File.absolute_path('.')
1111

12+
# A utility to facillitate rendering of Vec2D and Vec3D as vertex
1213
module Render
1314
java_import 'monkstone.vecmath.AppRender'
1415
java_import 'monkstone.vecmath.ShapeRender'
@@ -110,8 +111,7 @@ def library_loaded?(library_name)
110111
def initialize(options = {}, arguments = [])
111112
# Guard against invalid input.
112113
proxy_java_fields
113-
raise TypeError unless options.is_a? Hash
114-
raise TypeError unless arguments.is_a? Array
114+
raise TypeError unless options.is_a?(Hash) && arguments.is_a?(Array)
115115
# Set up the sketch.
116116
super()
117117
post_initialize(options)

0 commit comments

Comments
 (0)