rubymotion/BubbleWrap

View on GitHub
motion/shortcut.rb

Summary

Maintainability
A
0 mins
Test Coverage
# Make sure that
# Both BubbleWrap and BW are defined.  This file is depended on by everything
# else in BubbleWrap, so don't stuff anything in here unless you know why
# you're doing it.
module BubbleWrap
  SETTINGS = {}

  def self.debug=(val)
    BubbleWrap::SETTINGS[:debug] = val
  end

  def self.debug?
    BubbleWrap::SETTINGS[:debug]
  end

  def self.use_weak_callbacks=(val)
    BubbleWrap::SETTINGS[:use_weak_callbacks] = val
  end

  def self.use_weak_callbacks?
    BubbleWrap::SETTINGS[:use_weak_callbacks]
  end

  def version
    BubbleWrap::VERSION
  end
end

BW = BubbleWrap unless defined?(BW)