Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ Feel free to add your username here :)
* [MauricioLanda](https://github.com/MauricioLanda)
* [ShannonMCook](https://github.com/shannonmcook)
* [Lashuk1729](https://github.com/Lashuk1729)
* [daningenthron](https://github.com/daningenthron)
25 changes: 25 additions & 0 deletions Ruby/jumble_hello.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Ruby command-line Hello World app
# With thanks to the Internet Anagram Server, https://wordsmith.org/anagram/
# Run 'ruby jumble_hello.rb'

def jumble(word)
print word, "\r"
sleep 0.7
20.times do
word = word.chars.shuffle.join
print word, "\r"
sleep 0.03
end
end

def hello_world
jumble('World Hello')
jumble('Rolled Howl')
jumble('Howled Roll')
jumble('Howler Doll')
jumble('Droll Whole')
jumble('Lord Hell Ow')
puts 'Hello World'.ljust(12) # some strings are 12 characters instead of 11
end

hello_world