Skip to content

Select what you want to do with an array, and see the corresponding Ruby method you can use

Notifications You must be signed in to change notification settings

janiceshiu/ruby-array-explorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • Ruby is my first programming language. When learning it, I spent a lot of time looking up documentation and googling. I was inspired by Sarah Drasner's Javascript Array Explorer and ported it to Ruby.
  • To quote Sarah, "please keep in mind that this is not meant to be as comprehensive or a replacement for full documentation". Each method also links to the Ruby docs.
  • I based the examples and longer descriptions off the Ruby docs, altering as needed to make it more beginner-friendly.

Notes:

  • Ruby commands always return something.
  • At the prompt of irb, a Ruby shell, typing in nums = [4, 5, 6] and pressing enter results in => [4, 5, 6].
  • Similarly, the code in [Ruby Array Explorer]((https://contrepoint.github.io/ruby-array-explorer/) shows you what is returned at the end of every command.
  • Thus, nums = [4, 5, 6] #=> [4, 5, 6] means that nums = [4, 5, 6] returns [4, 5, 6]
  • Syntax highlighted with highlight.js

About

Select what you want to do with an array, and see the corresponding Ruby method you can use

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published