1+ # frozen_string_literal: true
2+
13working_directory = File . join ( File . dirname ( __FILE__ ) )
24$LOAD_PATH << working_directory unless $LOAD_PATH. include? ( working_directory )
35Dir [ File . join ( working_directory , '*.jar' ) ] . each do |jar |
@@ -11,30 +13,30 @@ def import_class_list(list, string)
1113 list . each { |d | java_import format ( string , d ) }
1214end
1315
14- common = %w( Vec2 Transform )
16+ common = %w[ Vec2 Transform ]
1517common_format = 'org.jbox2d.common.%s'
1618import_class_list ( common , common_format )
17- shape = %w( PolygonShape CircleShape ChainShape Shape )
19+ shape = %w[ PolygonShape CircleShape ChainShape Shape ]
1820shape_format = 'org.jbox2d.collision.shapes.%s'
1921import_class_list ( shape , shape_format )
20- world = %w( Body BodyDef BodyType World FixtureDef )
22+ world = %w[ Body BodyDef BodyType World FixtureDef ]
2123world_format = 'org.jbox2d.dynamics.%s'
2224import_class_list ( world , world_format )
23- joint = %w(
25+ joint = %w[
2426 Joint
2527 JointDef
2628 DistanceJointDef
2729 RevoluteJoint
2830 RevoluteJointDef
2931 MouseJointDef
3032 ConstantVolumeJointDef
31- )
33+ ]
3234joint_format = 'org.jbox2d.dynamics.joints.%s'
3335import_class_list ( joint , joint_format )
3436
3537# Import into module namespace to avoid likely clashes
3638module PB
37- particle = %w(
39+ particle = %w[
3840 ParticleColor
3941 ParticleContact
4042 ParticleGroupDef
@@ -46,7 +48,7 @@ module PB
4648 ParticleSystem
4749 StackQueue
4850 VoronoiDiagram
49- )
51+ ]
5052 particle_format = 'org.jbox2d.particle.%s'
5153 import_class_list ( particle , particle_format )
5254end
0 commit comments