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