Module: DeepCover::Config::Setter
- Included in:
- DeepCover
- Defined in:
- lib/deep_cover/config.rb
Instance Method Summary collapse
Instance Method Details
#config(notify = self) ⇒ Object
59 60 61 |
# File 'lib/deep_cover/config.rb', line 59 def config(notify = self) @config ||= Config.new(notify) end |
#configure(&block) ⇒ Object
63 64 65 66 67 68 69 70 71 |
# File 'lib/deep_cover/config.rb', line 63 def configure(&block) raise 'Must provide a block' unless block case block.arity when 0 config.instance_eval(&block) when 1 block.call(config) end end |