Module: ChaWork
- Defined in:
- lib/cha_work/persistence.rb,
lib/cha_work/msg.rb,
lib/cha_work/basic.rb,
lib/cha_work/chawork.rb,
lib/cha_work/chawork.rb,
lib/cha_work/version.rb,
lib/cha_work/sugar/uicontrol.rb,
lib/cha_work/sugar/uiactionsheet.rb
Overview
Persistence module built on top of NSUserDefaults
Defined Under Namespace
Modules: Basic, Message, Persistence
Classes: ActionSheetDelegate, UIControlCallbackHelper
Constant Summary
collapse
- SETTINGS =
{}
- VERSION =
"0.1"
Class Method Summary
collapse
Class Method Details
.look_in(where, here, here__deprecated = {}) ⇒ Object
18
19
20
21
22
23
24
25
26
|
# File 'lib/cha_work/chawork.rb', line 18
def look_in(where, here, here__deprecated={})
return here[where] if here.has_key? where
if here__deprecated[where]
translated = here__deprecated[where]
NSLog("The symbol #{where.inspect} has been deprecated in favor of #{translated.inspect}")
return here[translated]
end
raise SugarCubeNotFoundException.new(where.inspect)
end
|
.use_weak_callbacks=(val) ⇒ Object
5
6
7
|
# File 'lib/cha_work/chawork.rb', line 5
def self.use_weak_callbacks=(val)
ChaWork::SETTINGS[:use_weak_callbacks] = val
end
|
.use_weak_callbacks? ⇒ Boolean
9
10
11
|
# File 'lib/cha_work/chawork.rb', line 9
def self.use_weak_callbacks?
ChaWork::SETTINGS[:use_weak_callbacks]
end
|