Sha256: 7e96ff42e78bbe990a1b39025d95a843ee55961381972f43ab80b9b879e18199
Contents?: true
Size: 724 Bytes
Versions: 28
Compression:
Stored size: 724 Bytes
Contents
# lib/gemwarrior/misc/animation.rb # Animation routine module Gemwarrior module Animation def self.run(opts) options = { :oneline => false, :speed => nil, :alpha => true, :numeric => true, :random => true }.merge(opts) th = Thread.new do print Matrext::process({ :phrase => options.fetch(:phrase), :oneline => options.fetch(:oneline), :speed => options.fetch(:speed), :alpha => options.fetch(:alpha), :numeric => options.fetch(:numeric), :random => options.fetch(:random) }) end return th.join end end end
Version data entries
28 entries across 28 versions & 1 rubygems