Sha256: 18b8089ac63005ea99202c00b2813003fa1cee22665cb3f0a52aea83bff30eac
Contents?: true
Size: 629 Bytes
Versions: 1
Compression:
Stored size: 629 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/picturama.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.1 | lib/picturama.rb |