class MultimediaParadise::AllVideos

Constants

NAMESPACE
#

NAMESPACE

#

Public Class Methods

new( i = nil, run_already = true ) click to toggle source
#

initialize

#
# File lib/multimedia_paradise/video/all_videos.rb, line 33
def initialize(
    i           = nil,
    run_already = true
  )
  reset
  run if run_already
end

Public Instance Methods

consider_reporting_unknown_tags() click to toggle source
#

consider_reporting_unknown_tags

#
# File lib/multimedia_paradise/video/all_videos.rb, line 68
def consider_reporting_unknown_tags
  unless @array_unknown_tags.empty?
    opnn; e 'These entries are empty right now.'
    pp @array_unknown_tags
  end
end
opnn() click to toggle source
#

opnn

#
Calls superclass method MultimediaParadise::opnn
# File lib/multimedia_paradise/video/all_videos.rb, line 78
def opnn
  super(NAMESPACE) if show_namespace?
end
report_all_known_videofiles() click to toggle source
#

report_all_known_videofiles

#
# File lib/multimedia_paradise/video/all_videos.rb, line 52
def report_all_known_videofiles
  e; opnn; e 'All known (registered) videofiles are:'; e
  _ = return_all_video_files # This method is defined in shared.rb.
  _.each_pair {|key, value|
    title = value['title']
    if title.nil? # Add the unknown tag.
      title = swarn('<unknown>')
      @array_unknown_tags << key
    end
    e simp(('  %03d' % key).to_s)+' is '+sfancy(title)+'.' 
  }; e
end
reset() click to toggle source
#

reset

#
Calls superclass method MultimediaParadise::Base#reset
# File lib/multimedia_paradise/video/all_videos.rb, line 44
def reset
  super()
  @array_unknown_tags = []
end
run() click to toggle source
#

run (run tag)

#
# File lib/multimedia_paradise/video/all_videos.rb, line 92
def run
  report_all_known_videofiles
  consider_reporting_unknown_tags
end
show_namespace?() click to toggle source
#

show_namespace?

#
# File lib/multimedia_paradise/video/all_videos.rb, line 85
def show_namespace?
  false
end