@brodock
Gabriel Mazetto
2
ɡ a b ɾ i ˈ ɛ w m a z ˈ ɛ t t u
Slide 3
Slide 3 text
3
Slide 4
Slide 4 text
4
Slide 5
Slide 5 text
5
Slide 6
Slide 6 text
6
Slide 7
Slide 7 text
7
Slide 8
Slide 8 text
8
Slide 9
Slide 9 text
9
Slide 10
Slide 10 text
10
Slide 11
Slide 11 text
11
Slide 12
Slide 12 text
https://ruby-lang.org
Slide 13
Slide 13 text
13
Slide 14
Slide 14 text
14
Highlights
Slide 15
Slide 15 text
15
[experimental]
Slide 16
Slide 16 text
irb(main):001:0> [1,2,3] in [a,b,c]
irb(main):002:0> c
=> 3
16
Slide 17
Slide 17 text
irb(main):001:0> [1,2,3] in [a,b,c]
(irb):1: warning: Pattern matching is experimental, and
the behavior may change in future versions of Ruby!
=> nil
irb(main):002:0> c
=> 3
17
def something(a:, b:)
# ...
end
args = {a: 1, b: 2}
something(args)
warning: Using the last argument as keyword parameters is
deprecated; maybe ** should be added to the call
warning: The called method `something' is defined here
24