motion/joybox-ios/configuration/configuration.rb in joybox-0.0.6 vs motion/joybox-ios/configuration/configuration.rb in joybox-1.0.0
- old
+ new
@@ -1,8 +1,8 @@
module Joybox
module Configuration
-
+
module_function
def setup(&block)
instance_eval(&block) if block_given?
@@ -16,10 +16,11 @@
director unless @is_director_configured
opengl_view unless @is_opengl_view_configured
texture_2d unless @is_texture_2d_configured
file_utils unless @is_file_utils_configured
+ debug unless @is_debug_configured
end
def director(*hash)
@@ -60,9 +61,19 @@
hash = hash.pop
FileUtils.configure(hash)
@is_file_utils_configured = true
+ end
+
+
+ def debug(*hash)
+
+ hash = hash.pop
+
+ Debug.configure(hash)
+
+ @is_debug_configured = true
end
end
end