Class: Zlk::Config
- Inherits:
-
Object
- Object
- Zlk::Config
- Defined in:
- lib/zlk/config.rb
Instance Attribute Summary collapse
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Config
constructor
A new instance of Config.
- #use_fake_locks? ⇒ Boolean
Constructor Details
#initialize(hash) ⇒ Config
Returns a new instance of Config.
5 6 7 |
# File 'lib/zlk/config.rb', line 5 def initialize(hash) @hash = hash end |
Instance Attribute Details
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
3 4 5 |
# File 'lib/zlk/config.rb', line 3 def hash @hash end |
Instance Method Details
#use_fake_locks? ⇒ Boolean
9 10 11 |
# File 'lib/zlk/config.rb', line 9 def use_fake_locks? !!hash['use_fake_locks'.freeze] end |