Class: SousChef::Collection
- Inherits:
-
Object
- Object
- SousChef::Collection
- Extended by:
- Forwardable
- Defined in:
- lib/sous-chef/collection.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Collection
constructor
A new instance of Collection.
Constructor Details
#initialize(name) ⇒ Collection
Returns a new instance of Collection.
9 10 11 12 |
# File 'lib/sous-chef/collection.rb', line 9 def initialize(name) @name = name @children = {} end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/sous-chef/collection.rb', line 6 def name @name end |