Module: GlobalLock
- Extended by:
- GlobalLock
- Included in:
- GlobalLock
- Defined in:
- lib/global_lock.rb,
lib/global_lock/errors.rb,
lib/global_lock/lockable.rb
Defined Under Namespace
Modules: Errors, Lockable Classes: Config, Lock
Instance Attribute Summary collapse
-
#config(&block) ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
Instance Attribute Details
#config(&block) ⇒ Object (readonly)
Returns the value of attribute config.
9 10 11 |
# File 'lib/global_lock.rb', line 9 def config @config end |
Instance Method Details
#singleton ⇒ Object
11 12 13 |
# File 'lib/global_lock.rb', line 11 def singleton @singleton = GlobalLock::Lock.new(config) end |