Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arrays #5

Open
rubyonrailstutor opened this issue Mar 10, 2014 · 0 comments
Open

Arrays #5

rubyonrailstutor opened this issue Mar 10, 2014 · 0 comments

Comments

@rubyonrailstutor
Copy link

ARRAYS

  1. create a file, like 'array.rb'
  2. create methods that 'wrap' the following Array methods
  3. add a few more methods...
  4. commit your changes to your file and push the file your your rubyonraisltutor repository.
  5. add a link to the file on github that you created here on this challenge.
  # compact, count, delete_at, empty? , each, each_with_index, keep_if, select, collect, reduce, each_with_object
  # reverse_each, slice!, uniq!, unshift, rotate
  # a wrapper method is a method that encapsulates already defined logic
  # for example, the below is a wrapper of the capitalize method

  def make_letters_capital(string)
    string.capitalize
  end

RESOURCES

http://www.ruby-doc.org/core-2.1.1/Array.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant