Sha256: cfbb791560d8853a8add4b71b02d9b222a672c5f4872151243c4f8b3e176f6e4
Contents?: true
Size: 908 Bytes
Versions: 1
Compression:
Stored size: 908 Bytes
Contents
# frozen_string_literal: true module QuranAudio ## # The {QuranAudio::Command QuranAudio::Command} class # is the superclass of all commands. class Command require_relative "command/ls" require_relative "command/pull" include FileUtils ## # @return [Ryo] # Command-line options attr_reader :options ## # @param [Ryo] options def initialize(options) @options = options end private def dir @dir ||= Ryo.from({ localbase: File.join(Dir.home, ".local"), share: Ryo.memo { File.join(localbase, "share", "quran-audio") }, root: File.realpath(File.join(__dir__, "..", "..")), erb: Ryo.memo { File.join(root, "share", "quran-audio", "erb") }, json: Ryo.memo { File.join(root, "share", "quran-audio", "json") }, }) end def line @line ||= IO::Line.new($stdout) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quran-audio-0.5.1 | lib/quran-audio/command.rb |