motion/core/app.rb in bubble-wrap-1.1.5 vs motion/core/app.rb in bubble-wrap-1.2.0.pre

- old
+ new

@@ -127,8 +127,25 @@ else return NSLocale.currentLocale end end + # the current application environment : development, test, release + def environment + RUBYMOTION_ENV + end + + def development? + environment == 'development' + end + + def test? + environment == 'test' + end + + def release? + environment == 'release' + end + end end ::App = BubbleWrap::App unless defined?(::App)