scroll_text 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/scroll_text.rb +10 -0
  3. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a3e727e0822b3b6c5e14130bfaee7f90bb5b3b28
4
+ data.tar.gz: 6937137e763e92a520f758b25ba257260a8d9fb5
5
+ SHA512:
6
+ metadata.gz: 4abbfec0d65b0febb908919ddfdb9332f2a2f1951191beddaf75ecd4094c2bda298d6e5dd7e8a75ccfa2197aa0a6e9e544d92a256b6c10a22b44bdebc58f258b
7
+ data.tar.gz: b4fb440a81b0fe94a32ecc4c234cf6e3bf83a88b2e43c4347be6d68178cb35d561a3f31afaeea90d198da69fd42a094a230e48944e5d0415c2aeb35687be86a5
data/scroll_text.rb ADDED
@@ -0,0 +1,10 @@
1
+ # @param text [String] Text to display
2
+ # @param delay [Float] Delay between printing characters
3
+ def scroll_text(text="", delay=0.05)
4
+ text.each_char do |char|
5
+ print char
6
+ sleep delay
7
+ end
8
+ sleep delay
9
+ puts
10
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: scroll_text
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Zachary Perlmutter
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-07-25 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email: zrp200@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - scroll_text.rb
20
+ homepage:
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.5.1
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: "`puts`-like method where characters appear one at a time"
44
+ test_files: []