Class: SousChef::Collection

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/sous-chef/collection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/sous-chef/collection.rb', line 6

def name
  @name
end