summaryrefslogtreecommitdiffhomepage
path: root/lib/ruby2d/rectangle.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ruby2d/rectangle.rb')
-rw-r--r--lib/ruby2d/rectangle.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ruby2d/rectangle.rb b/lib/ruby2d/rectangle.rb
index 1ee30d5..d6ec46c 100644
--- a/lib/ruby2d/rectangle.rb
+++ b/lib/ruby2d/rectangle.rb
@@ -11,7 +11,7 @@ module Ruby2D
update_coords(x, y, w, h)
update_color(c)
- if defined? DSL
+ if Module.const_defined? :DSL
Application.add(self)
end
end