Sha256: 62f32b745791594076e53d3de821e217b72e3d1930215e4012041f9cfc38313c
Contents?: true
Size: 396 Bytes
Versions: 7
Compression:
Stored size: 396 Bytes
Contents
module HighVoltage require "find" class PageCollector attr_reader :content_path def initialize(content_path) @content_path = content_path.to_s end def page_ids pages.select(&:valid?).map(&:id) end private def pages Find.find(content_path).map do |file_path| HighVoltage::Page.new(content_path, file_path) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems