Skip to content

osalbahr/Learn-Ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learn-Ruby

Repo to Learn Ruby. PR's are welcome.

You may notice C++ files or other languages. That is because sometimes I write a solution in a more familiar language first.

I/O

Input/output is similar to Python, Bash, and C.

Reading Example

word = gets

Writing Example

puts "Hello, World!"

Strings

The worst part in any language.

Luckily, strings in Ruby can be manipulated similarly to Python via square bracket indexing (i.e. [i]). For example:

% ruby
word = gets
puts word[0]
^D
lol
l

About

Repo to Learn Ruby. PR's are welcome.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published