motion/core/app.rb in bubble-wrap-1.5.0.rc1 vs motion/core/app.rb in bubble-wrap-1.5.0

- old
+ new

@@ -1,9 +1,11 @@ # Provides a module to store global states # module BubbleWrap module App + include BubbleWrap::Deprecated + module_function # Returns the application's document directory path where users might be able to upload content. # @return [String] the path to the document directory def documents_path @@ -23,9 +25,10 @@ end def user_cache NSUserDefaults.standardUserDefaults end + deprecated :user_cache, "2.0.0" # Executes a block after a certain delay # Usage example: # App.run_after(0.5) { p "It's #{Time.now}" } def run_after(delay,&block)