diff options
| author | Tom Black <[email protected]> | 2017-02-22 01:51:53 -0500 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2017-02-22 01:51:53 -0500 |
| commit | c7851266b6f9c54f7a0c8165105577dfd5915d24 (patch) | |
| tree | 244529962218ffc5747e91de0c654fd22bed065c /lib | |
| parent | bd349170ddf4e8506098a2c58a1347452288a462 (diff) | |
| download | ruby2d-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.rb | 2 |
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 |
