Module: Flashman

Defined in:
lib/flashman.rb,
lib/flashman/version.rb

Defined Under Namespace

Classes: Flashman

Constant Summary collapse

VERSION =
"0.1.6"

Class Method Summary collapse

Class Method Details

.init(window, output, interval, speed, times) ⇒ Object



6
7
8
# File 'lib/flashman.rb', line 6

def self.init(window, output, interval, speed, times)
  Flashman.new(window, output, interval, speed, times)
end

.usageObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/flashman.rb', line 10

def self.usage
  puts "flashman [-w appname] [-o output-file] [-i interval] [-s speed]"
  puts
  puts "Options are as follows:"
  puts "  -w  Specify an application name which you want to record. The default is 'Terminal'."
  puts "  -o  Specify the output file. The default is to put 'out.gif' in the directory where flashman was executed."
  puts "  -i  Specify the interval in seconds. The screen of the application is recorded every 'interval' seconds."
  puts "  -s  Specify the number of the speed. If you specify '2', the playback speed will be doubled."
  puts "  -t  Specify how many times the output gif loops. The default is '0' which means infinite."
end