Class: Dapp::Config::Base

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

Direct Known Subclasses

Directive::Base, Dimg::Config::Base

Instance Method Summary collapse

Constructor Details

#initialize(dapp:, &blk) ⇒ Base

Returns a new instance of Base.



4
5
6
7
# File 'lib/dapp/config/base.rb', line 4

def initialize(dapp:, &blk)
  @dapp = dapp
  instance_eval(&blk) if block_given?
end