Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emilydaykin/ruby
Intro to the Ruby programming language!
https://github.com/emilydaykin/ruby
Last synced: 7 days ago
JSON representation
Intro to the Ruby programming language!
- Host: GitHub
- URL: https://github.com/emilydaykin/ruby
- Owner: emilydaykin
- Created: 2023-05-02T14:36:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-20T15:49:15.000Z (about 1 year ago)
- Last Synced: 2024-09-09T17:20:24.441Z (2 months ago)
- Language: Ruby
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ruby
Notes, practice and examples on the Ruby programming language π
### Notes:
* To run ruby in the command line, use "interactive ruby": `irb`
* To run a ruby file, run `ruby .rb`
* [Ruby Style Guide & Best Practices](https://github.com/rubocop/ruby-style-guide)
* [Practice Ruby](https://try.ruby-lang.org/)
* Object-oriented programming (OOP) is a programming paradigm that uses objects and their interactions to design and program applications.
- Allows the program to block off areas of code that perform certain tasks independently of other areas in the application.
- Encapsulation - concept of blocking off areas of code and not making it available to the rest of the program
- Abstraction - is simplifying a complex process of a program, an enterprise software solution for example by modeling classes appropriate for it
- Inheritance - is used where a class inherits the behavior of another class, referred to as the superclass
- Polymorphism - is when a class inherits the behaviors of another class, but has the ability to not inherit everything and change some of itβs inherited behaviors. For example to write a method that does something differently from the inherited method
- Classes - It is a blueprint that describes the state and behavior that the objects of the class all share. A class can be used to create many objects. Objects created at runtime from a class are called instances of that particular class.
* Installing gems ("packages"): `gem install bcrypt`