- 📖 About the Project
- 💻 Getting Started
- 👥 Authors
- 🔭 Future Features
- 🤝 Contributing
- ⭐️ Show your support
- 🙏 Acknowledgements
- ❓ FAQ
- 📝 License
- Ruby
- Implement classes and objects in Ruby.
- Implement encapsulation and inheritance with Ruby.
- Run a program using the command line.
To get a local copy up and running, follow these steps.
In order to run this project you need:
In order to run this project you need:
- MacOS
- Ubuntu
- Windows
There are several tools that can be used to install Ruby on your local machine. The most popular are:
rbenv
RVM
asdf
We will go with rbenv because it does not override any of the system shell scripts like RVM and it allows us to compile older Ruby versions that will fail with RVM.
Run the following commands in your terminal:
brew install rbenv ruby-build
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
source ~/.bash_profile
rbenv install 3.0.1
rbenv global 3.0.1
ruby -v
Note: If you are using a shell other than bash, for example zsh, you should change the first line to use zshrc like this:
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.zshrc
or any other config file of your shell.
You can install Ruby on Ubuntu in several ways. The easiest way is to run the following command (source):
sudo apt-get install ruby-full
If that doesn't work, you can try installing Ruby using rbenv. This is a version manager tool for the Ruby programming language on Unix-like systems.
Run the following commands in your terminal:
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
rbenv install 3.0.1
rbenv global 3.0.1
ruby -v
consider checking Install ruby on Ubuntu 20.04 with rbenv.
Installing Ruby on Windows is a little more difficult than installing it on another OS. We would recommend using WSL, but you can also try to install Ruby directly on your OS with rubyinstaller.
WSL only works on 64-bit installations of Windows.
If you are using a 64-bit version of Windows 10, we recommend following this article to install Ruby.
If you can not use WSL then you should follow these steps:
Download the last version of RubyInstaller. Run RubyInstaller and follow the steps described here.
Clone this repository to your desired folder:
cd my-folder
git clone https://github.com/ahadb802/oop_school_library.git
Install this project with:
cd oop_school_library
gem install
To run the project, execute the following command:
ruby file-name.rb
👤 Abdul Ahad Bhatti
- GitHub: @ahadb802
- Styling of the webpage
- Animation to add or remove functionality
- Adding responsiveness
Contributions, issues, and feature requests are welcome! Add suggestions by opening new issues.
Feel free to check the issues page.
Give a ⭐️ if you like this project!
I would like to thank:
- Microverse
- Code Reviewers
- Coding Partners
This project is MIT licensed.