Class: Dapp::Config::Chef
- Inherits:
-
Object
- Object
- Dapp::Config::Chef
- Defined in:
- lib/dapp/config/chef.rb
Overview
Chef
Instance Attribute Summary collapse
-
#_modules ⇒ Object
readonly
Returns the value of attribute _modules.
Instance Method Summary collapse
- #clone ⇒ Object
-
#initialize ⇒ Chef
constructor
A new instance of Chef.
- #module(*args) ⇒ Object
Constructor Details
#initialize ⇒ Chef
Returns a new instance of Chef.
7 8 9 |
# File 'lib/dapp/config/chef.rb', line 7 def initialize @_modules = [] end |
Instance Attribute Details
#_modules ⇒ Object (readonly)
Returns the value of attribute _modules.
5 6 7 |
# File 'lib/dapp/config/chef.rb', line 5 def _modules @_modules end |
Instance Method Details
#clone ⇒ Object
15 16 17 |
# File 'lib/dapp/config/chef.rb', line 15 def clone Marshal.load(Marshal.dump(self)) end |
#module(*args) ⇒ Object
11 12 13 |
# File 'lib/dapp/config/chef.rb', line 11 def module(*args) @_modules.concat(args) end |