Class: Deckr::Package

Inherits:
Resource show all
Defined in:
lib/deckr/package.rb

Instance Attribute Summary

Attributes inherited from Resource

#name, #parent

Instance Method Summary collapse

Methods inherited from Resource

#==, #initialize, #path, #url

Constructor Details

This class inherits a constructor from Deckr::Resource

Instance Method Details

#contentObject



18
19
20
# File 'lib/deckr/package.rb', line 18

def content
  ""
end

#exist?Boolean

Returns:

  • (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