Sha256: ef29efd18a86c7546beb65e204a080fd7688844de9420d7f81ed58bb29f79abf

Contents?: true

Size: 430 Bytes

Versions: 11

Compression:

Stored size: 430 Bytes

Contents

module RMExtensions

  module ObjectExtensions

    module Util

      # Raises an exception when called from a thread other than the main thread.
      # Good for development and experimenting.
      def rmext_assert_main_thread!
        raise "This method must be called on the main thread." unless NSThread.currentThread.isMainThread
      end

    end

  end

end
Object.send(:include, ::RMExtensions::ObjectExtensions::Util)

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rm-extensions-0.1.6 lib/motion/util.rb
rm-extensions-0.1.5 lib/motion/util.rb
rm-extensions-0.1.4 lib/motion/util.rb
rm-extensions-0.1.3 lib/motion/util.rb
rm-extensions-0.1.2 lib/motion/util.rb
rm-extensions-0.1.1 lib/motion/util.rb
rm-extensions-0.1.0 lib/motion/util.rb
rm-extensions-0.0.9 lib/motion/util.rb
rm-extensions-0.0.8 lib/motion/util.rb
rm-extensions-0.0.7 lib/motion/util.rb
rm-extensions-0.0.6 lib/motion/util.rb