Class: Madeleine::NumberedFile
- Inherits:
-
Object
- Object
- Madeleine::NumberedFile
- Defined in:
- lib/madeleine.rb
Overview
:nodoc:
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(path, name, id) ⇒ NumberedFile
constructor
A new instance of NumberedFile.
- #name ⇒ Object
Constructor Details
#initialize(path, name, id) ⇒ NumberedFile
Returns a new instance of NumberedFile.
247 248 249 |
# File 'lib/madeleine.rb', line 247 def initialize(path, name, id) @path, @name, @id = path, name, id end |
Instance Method Details
#name ⇒ Object
251 252 253 254 255 256 257 |
# File 'lib/madeleine.rb', line 251 def name result = @path result += File::SEPARATOR result += sprintf("%0#{FILE_COUNTER_SIZE}d", @id) result += '.' result += @name end |