Home / Ruby To_proc

Ruby To_proc

February 4, 2018 · 1 min read

&:symbol

로 암묵적으로 실행되어짐

%w(1 2 3 4 5).map(&:to_i)