enumerables: beyond the #each

111
Enumerables: Beyond the #each

Upload: bruno-gomes

Post on 26-Jan-2017

55 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Enumerables: Beyond the #each

Enumerables: Beyond the #each

Page 2: Enumerables: Beyond the #each

BRUNO GOMES

@brunojabs

Software Engineer at Magnetis

Page 3: Enumerables: Beyond the #each

ENUMERABLES

Page 4: Enumerables: Beyond the #each

ENUMERABLESModule Standard Lib Ruby E.g.: Array []

Hash {}

Page 5: Enumerables: Beyond the #each

♥🍺

Page 6: Enumerables: Beyond the #each
Page 7: Enumerables: Beyond the #each

♥🍺

Page 8: Enumerables: Beyond the #each
Page 9: Enumerables: Beyond the #each

Beer Struct

Page 10: Enumerables: Beyond the #each

Beer Struct

Page 11: Enumerables: Beyond the #each

Beer Struct

Page 12: Enumerables: Beyond the #each

Beer Struct

Page 13: Enumerables: Beyond the #each

Cheers!

Page 14: Enumerables: Beyond the #each

#each

Page 15: Enumerables: Beyond the #each

#each

Page 16: Enumerables: Beyond the #each

#each

Page 17: Enumerables: Beyond the #each

#each

Page 18: Enumerables: Beyond the #each

#each

Page 19: Enumerables: Beyond the #each

👍

Page 20: Enumerables: Beyond the #each

#each_with_index

Page 21: Enumerables: Beyond the #each

#each_with_index

Page 22: Enumerables: Beyond the #each

#each_with_index

Page 23: Enumerables: Beyond the #each

#each_with_index

Page 24: Enumerables: Beyond the #each

#each_with_index

Page 25: Enumerables: Beyond the #each

👍

Page 26: Enumerables: Beyond the #each
Page 27: Enumerables: Beyond the #each
Page 28: Enumerables: Beyond the #each
Page 29: Enumerables: Beyond the #each
Page 30: Enumerables: Beyond the #each
Page 31: Enumerables: Beyond the #each
Page 32: Enumerables: Beyond the #each
Page 33: Enumerables: Beyond the #each
Page 34: Enumerables: Beyond the #each
Page 35: Enumerables: Beyond the #each

#each_with_object

Page 36: Enumerables: Beyond the #each

#each_with_object

Page 37: Enumerables: Beyond the #each

#each_with_object

Page 38: Enumerables: Beyond the #each

#each_with_object

Page 39: Enumerables: Beyond the #each

#each_with_object

Page 40: Enumerables: Beyond the #each

#each_with_object

Page 41: Enumerables: Beyond the #each

👍

Page 42: Enumerables: Beyond the #each
Page 43: Enumerables: Beyond the #each
Page 44: Enumerables: Beyond the #each
Page 45: Enumerables: Beyond the #each

#all?

Page 46: Enumerables: Beyond the #each

#all?

Page 47: Enumerables: Beyond the #each

#all?

!= nil || != false

Page 48: Enumerables: Beyond the #each

#all?

Page 49: Enumerables: Beyond the #each

👍

Page 50: Enumerables: Beyond the #each
Page 51: Enumerables: Beyond the #each
Page 52: Enumerables: Beyond the #each
Page 53: Enumerables: Beyond the #each
Page 54: Enumerables: Beyond the #each
Page 55: Enumerables: Beyond the #each

#partition

Page 56: Enumerables: Beyond the #each

#partition

Page 57: Enumerables: Beyond the #each

#partition

Page 58: Enumerables: Beyond the #each

👍

Page 59: Enumerables: Beyond the #each
Page 60: Enumerables: Beyond the #each
Page 61: Enumerables: Beyond the #each
Page 62: Enumerables: Beyond the #each

#select

Page 63: Enumerables: Beyond the #each

#select

Page 64: Enumerables: Beyond the #each

#select

Page 65: Enumerables: Beyond the #each

#select

Page 66: Enumerables: Beyond the #each

👍

Page 67: Enumerables: Beyond the #each

#detect

Page 68: Enumerables: Beyond the #each

#detect

Page 69: Enumerables: Beyond the #each

👍

Page 70: Enumerables: Beyond the #each
Page 71: Enumerables: Beyond the #each
Page 72: Enumerables: Beyond the #each
Page 73: Enumerables: Beyond the #each
Page 74: Enumerables: Beyond the #each
Page 75: Enumerables: Beyond the #each

#map

Page 76: Enumerables: Beyond the #each

#map

Page 77: Enumerables: Beyond the #each

#map

Page 78: Enumerables: Beyond the #each

👍

Page 79: Enumerables: Beyond the #each
Page 80: Enumerables: Beyond the #each
Page 81: Enumerables: Beyond the #each
Page 82: Enumerables: Beyond the #each
Page 83: Enumerables: Beyond the #each
Page 84: Enumerables: Beyond the #each
Page 85: Enumerables: Beyond the #each
Page 86: Enumerables: Beyond the #each

#group_by

Page 87: Enumerables: Beyond the #each

#group_by

Page 88: Enumerables: Beyond the #each

#group_by

Page 89: Enumerables: Beyond the #each

👍

Page 90: Enumerables: Beyond the #each
Page 91: Enumerables: Beyond the #each

#include?

Page 92: Enumerables: Beyond the #each

#include?

Page 93: Enumerables: Beyond the #each

#include?

Page 94: Enumerables: Beyond the #each

👍

Page 95: Enumerables: Beyond the #each

Beer Struct

Page 96: Enumerables: Beyond the #each

#sort

Page 97: Enumerables: Beyond the #each

#sort

Page 98: Enumerables: Beyond the #each

#sort

Page 99: Enumerables: Beyond the #each

#sort_by

Page 100: Enumerables: Beyond the #each

#sort_by

Page 101: Enumerables: Beyond the #each

#sort_by

Page 102: Enumerables: Beyond the #each

👍

Page 103: Enumerables: Beyond the #each

MY OWN ENUMERABLE

Page 104: Enumerables: Beyond the #each
Page 105: Enumerables: Beyond the #each
Page 106: Enumerables: Beyond the #each
Page 107: Enumerables: Beyond the #each
Page 108: Enumerables: Beyond the #each
Page 109: Enumerables: Beyond the #each

CONCLUSION

Page 110: Enumerables: Beyond the #each

We are hiring!magnetis.com.br/dev

Page 111: Enumerables: Beyond the #each

THANK YOU!