Enumerables: Beyond the #each
BRUNO GOMES
@brunojabs
Software Engineer at Magnetis
ENUMERABLES
ENUMERABLESModule Standard Lib Ruby E.g.: Array []
Hash {}
♥🍺
♥🍺
Beer Struct
Beer Struct
Beer Struct
Beer Struct
Cheers!
#each
#each
#each
#each
#each
👍
#each_with_index
#each_with_index
#each_with_index
#each_with_index
#each_with_index
👍
#each_with_object
#each_with_object
#each_with_object
#each_with_object
#each_with_object
#each_with_object
👍
#all?
#all?
#all?
!= nil || != false
#all?
👍
#partition
#partition
#partition
👍
#select
#select
#select
#select
👍
#detect
#detect
👍
#map
#map
#map
👍
#group_by
#group_by
#group_by
👍
#include?
#include?
#include?
👍
Beer Struct
#sort
#sort
#sort
#sort_by
#sort_by
#sort_by
👍
MY OWN ENUMERABLE
CONCLUSION
We are hiring!magnetis.com.br/dev
THANK YOU!