Sha256: f6c42dccba82274d62a9e01d199c2effa26ea4273a9db699e68546a4ea571382
Contents?: true
Size: 452 Bytes
Versions: 1
Compression:
Stored size: 452 Bytes
Contents
# frozen_string_literal: true module QuranAudio 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quran-audio-0.5.1 | lib/quran-audio/command/ls.rb |