Sha256: d4721c51700bbbbe4f482162676d2d5aa70e322e9c732ec3c58b5d29c1e09483
Contents?: true
Size: 583 Bytes
Versions: 2
Compression:
Stored size: 583 Bytes
Contents
require 'ext/string' require 'stringex' require 'fileutils' 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) albums = [] Dir["#{album_source}/*"].each { |album| if File.directory?(album) potential_album = Picturama::Album.new(:folder => album) albums.push(potential_album) end } albums end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
picturama-0.0.3 | lib/picturama.rb |
picturama-0.0.2 | lib/picturama.rb |