Class: Deckr::Package
Instance Attribute Summary
Attributes inherited from Resource
#name, #parent
Instance Method Summary
collapse
Methods inherited from Resource
#==, #initialize, #path, #url
Instance Method Details
#content ⇒ Object
18
19
20
|
# File 'lib/deckr/package.rb', line 18
def content
""
end
|
#exist? ⇒ Boolean
14
15
16
|
# File 'lib/deckr/package.rb', line 14
def exist?
File.directory?(path)
end
|
#resource(name) ⇒ Object
3
4
5
6
|
# File 'lib/deckr/package.rb', line 3
def resource(name)
@resources ||= {}
@resources[name.to_sym] ||= Resource.new(self, name)
end
|