Sha256: 3e9fbeebb6d93c4fead652932ee3d5dffb0d6d24112885ab5764ddcf0641daa7
Contents?: true
Size: 454 Bytes
Versions: 4
Compression:
Stored size: 454 Bytes
Contents
# frozen_string_literal: true module Quran::Audio class Command::Ls < Command ## # @return [void] def perform recitations = Ryo.from_json(path: File.join(dir.json, "recitations.json")) template = File.binread(File.join(dir.erb, "recitation.erb")) puts Ryo.each(recitations).map { |switch, recitation| ERB.new(template).result_with_hash({switch:, recitation: Ryo(recitation)}) }.join("\n") end end end
Version data entries
4 entries across 4 versions & 1 rubygems