summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorTom Black <[email protected]>2017-02-22 01:51:53 -0500
committerTom Black <[email protected]>2017-02-22 01:51:53 -0500
commitc7851266b6f9c54f7a0c8165105577dfd5915d24 (patch)
tree244529962218ffc5747e91de0c654fd22bed065c /lib
parentbd349170ddf4e8506098a2c58a1347452288a462 (diff)
downloadruby2d-c7851266b6f9c54f7a0c8165105577dfd5915d24.tar.gz
ruby2d-c7851266b6f9c54f7a0c8165105577dfd5915d24.zip
`extend` rather than `include` the DSL
So that DSL methods aren’t added to every `Object`
Diffstat (limited to 'lib')
-rw-r--r--lib/ruby2d.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ruby2d.rb b/lib/ruby2d.rb
index 4be4f39..f77d5f7 100644
--- a/lib/ruby2d.rb
+++ b/lib/ruby2d.rb
@@ -16,5 +16,5 @@ require 'ruby2d/sound'
require 'ruby2d/music'
require 'ruby2d/ruby2d' # load native extension
-include Ruby2D::DSL
include Ruby2D
+extend Ruby2D::DSL