class Thumbnailer::Files

Attributes

collection[R]
size[R]

Public Class Methods

new(path, options = {}) click to toggle source
Calls superclass method Thumbnailer::Base::new
# File lib/thumbnailer/files.rb, line 5
def initialize(path, options = {})
  super(options)
  @collection = Dir.glob(path)
  @size       = @collection.size
end

Public Instance Methods

create() click to toggle source
# File lib/thumbnailer/files.rb, line 11
def create
  @collection.each do |path|
    file = File.new(path, @options)
    file.create
  end
end