Class: Xspf2m3u::Help

Inherits:
Object
  • Object
show all
Defined in:
lib/xspf2m3u/help.rb

Overview

Help helpers :)

Constant Summary collapse

PROG_BANNER =

Toplevel program’s banner.

<<-EOF.gsub(/^ {4}/, '')

  xspf -> m3u converter

EOF
GENERAL_USAGE =

Toplevel program’s usage message.

<<-EOF.gsub(/^ {4}/, '')

  xspf2m3u [task] [options]

  Converts xspf playlist file (-i option) to m3u playlist file (-o option).

EOF
EXAMPLE =

Usage example

<<-EOF.gsub(/^ {4}/, '')

  xspf2m3u -i 1.xspf -o 1.m3u

EOF

Class Method Summary collapse

Class Method Details

.general_messageObject

General help message.



33
34
35
36
37
38
39
40
41
42
# File 'lib/xspf2m3u/help.rb', line 33

def general_message
  <<-EOF.gsub(/^ {8}/, '')
  Xspf2m3u:
  #{PROG_BANNER}
  Usage:
  #{GENERAL_USAGE}
  Example:
  #{EXAMPLE}
  EOF
end