Skip to content

In this project, we have defined our version of Ruby enumerable methods.

Notifications You must be signed in to change notification settings

Vagyasri/Enumerable

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enumerables Project

In this project we implemented our version of the Ruby enumerable methods, the methods we created are:

  • #my_each
  • #my_each_with_index
  • #my_select
  • #my_all?
  • #my_any?
  • #my_none?
  • #my_count
  • #my_map
  • #my_inject which was tested wit a #multiply_els method

Built With

  • Ruby
  • Rspec

Getting Started

To get a local copy run the following steps:

  • Copy this link
  • Open your terminal or command line
  • Run "git clone Paste this link"
  • Open the folder with your code editor
  • Create a branch to work on
  • Now You can edit the code and do a pull request

How to set up tests

  • Boot up your terminal and punch in "gem install rspec" to install RSpec
  • You can verify your version of RSpec with "rspec --version"
  • cd into project directory "Tic-Tac-Toe" and type "rspec --init" to initialize RSpec within the project
  • This will generate two files, ".rspec" and "spec/spec_helper.rb"
  • You can create the ruby test file inside the spec directory (eg: enum_spec.rb)

How to run tests

  • You can simply run "rspec" in the terminal by cd into the directory in order torun the tests
  • You can also run "rspec file-path" for the particular file you want to test from the directory
  • You can run "rubocop" inorder to check the linter errors

Authors

👤 Bhagyashree Patra

👤 Zeenat Lawal

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

About

In this project, we have defined our version of Ruby enumerable methods.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%