class Gibier::SlideHelper
Public Class Methods
each_slides(dir = 'data') { |dir_name| ... }
click to toggle source
# File lib/gibier/slide_helper.rb, line 3 def self.each_slides(dir = 'data') Dir.foreach(dir) do |dir_name| if !dir_name.start_with?('.') && File.directory?("#{dir}/#{dir_name}") yield dir_name end end end
slides(dir = 'data')
click to toggle source
# File lib/gibier/slide_helper.rb, line 11 def self.slides(dir = 'data') SlideIterator.new(dir).to_enum end