“Object Oriented Ruby” by Michał Papis.
34
OORuby @mpapis
-
Upload
pivorak-meetup -
Category
Software
-
view
102 -
download
4
Transcript of “Object Oriented Ruby” by Michał Papis.
OORuby
@mpapis
Why?
1. Breaking encapsulation
1. Breaking encapsulation2. Lack of inheritance
1. Breaking encapsulation2. Lack of inheritance3. Forcing immutability
Encapsulation
INPUT
OUTPUT
DOCUMENTATION
Mixins
Patterns
Example 1.
Example 2.
Example 3.
Composition
Exa
mp
le 4
.
Exa
mp
le 5
.
Inheritance
Layers
Example 6.
What’s next
Typed Ruby
Typed Ruby1. Contracts
Typed Ruby1. Contracts2. Interfaces
Summary
https://niczsoft.com/2016/05/object-oriented-ruby/