Class: Bits::Manifest

Inherits:
Object
  • Object
show all
Defined in:
lib/bits/manifest.rb

Defined Under Namespace

Classes: Dependency

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root) ⇒ Manifest

Returns a new instance of Manifest.



14
15
16
17
18
19
20
# File 'lib/bits/manifest.rb', line 14

def initialize(root)
  unless root.kind_of? Hash
    raise "Manifest is not of type Hash: #{path}"
  end

  @depends = read_depends root
end

Instance Attribute Details

#dependsObject (readonly)

Returns the value of attribute depends.



12
13
14
# File 'lib/bits/manifest.rb', line 12

def depends
  @depends
end