Module: RMExtensions

Defined in:
lib/motion/util.rb,
lib/motion/events.rb,
lib/motion/layout.rb,
lib/motion/queues.rb,
lib/motion/accessors.rb,
lib/rm-extensions/version.rb

Defined Under Namespace

Modules: ObjectExtensions Classes: EventResponse, EventsFromProxy, EventsToProxy, Layout, LongTask

Constant Summary collapse

VERSION =
"0.5.2"

Class Method Summary collapse

Class Method Details

.debug!(bool = true) ⇒ Object



7
8
9
# File 'lib/motion/util.rb', line 7

def self.debug!(bool=true)
  @debug = bool
end

.debug?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/motion/util.rb', line 3

def self.debug?
  !!@debug
end

.serial_qsObject

A hash used by rmext_on_serial_q storing created serial queues, so they are not instantiated each time they are used.



5
6
7
8
# File 'lib/motion/queues.rb', line 5

def self.serial_qs
  Dispatch.once { @serial_qs = {} }
  @serial_qs
end