Class: Zlk::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/zlk/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hashObject (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

Returns:

  • (Boolean)


9
10
11
# File 'lib/zlk/config.rb', line 9

def use_fake_locks?
  !!hash['use_fake_locks'.freeze]
end