Sha256: 88181bc8a18dfc1243f6d1739748cdb480d6af8e2022c0b1543bd9b322ca578a

Contents?: true

Size: 626 Bytes

Versions: 1

Compression:

Stored size: 626 Bytes

Contents

require 'ext/string'
require 'stringex'
require 'fileutils'
require 'pry'
require 'picturama/album'
require 'picturama/picture'
require 'picturama/version'

module Picturama

  Dir["lib/picturama/*.rb"].each { |file| require "#{Dir.pwd}/#{file}" }

  def self.config
    YAML.load_file('config/config.yml')['picturama']
  end

  def self.albums(album_source)
    [].tap { |albums|
      Dir["#{album_source}/*"].each { |album|
        if File.directory?(album)
          potential_album = Picturama::Album.new(:folder => album)
          albums << potential_album if potential_album.valid?
        end
      }
    }
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
picturama-1.0.0beta lib/picturama.rb