Sha256: 812ff8c30cc3dab2802613e46895802cff8d0dff137d29d16e7eeb30b7d4a511
Contents?: true
Size: 485 Bytes
Versions: 5
Compression:
Stored size: 485 Bytes
Contents
class Mangos::PagesInflater def initialize(page_paths) @page_paths = page_paths end def inflate paths = [] @page_paths.split("|").each do |part| if part.include?("/") name, count = part.split("/") last_base, last_ext = name.split(".") paths << name count.to_i.times do last_base.succ! paths << "#{last_base}.#{last_ext}" end else paths << part end end paths end end
Version data entries
5 entries across 5 versions & 1 rubygems