Class: Gem::MiniMirror::Resources::BaseFile
- Inherits:
-
Object
- Object
- Gem::MiniMirror::Resources::BaseFile
- Includes:
- Gem::MiniMirror::Resource
- Defined in:
- lib/rubygems/mini_mirror/resources/base_file.rb
Instance Method Summary collapse
-
#initialize(runner, options) ⇒ BaseFile
constructor
A new instance of BaseFile.
- #tag ⇒ Object
Methods included from Gem::MiniMirror::Resource
Constructor Details
#initialize(runner, options) ⇒ BaseFile
Returns a new instance of BaseFile.
7 8 9 10 11 12 |
# File 'lib/rubygems/mini_mirror/resources/base_file.rb', line 7 def initialize(runner, ) path = File.([:path]) throw :resource_load_error, :path => path unless File.exist?(path) @path = path super end |
Instance Method Details
#tag ⇒ Object
14 15 16 |
# File 'lib/rubygems/mini_mirror/resources/base_file.rb', line 14 def tag 'path-' + @path end |