Inductor@feddit.de to Programmer Humor@programming.dev · 1 year agoProgramming Languages as Essaysfeddit.deimagemessage-square15fedilinkarrow-up17arrow-down10
arrow-up17arrow-down1imageProgramming Languages as Essaysfeddit.deInductor@feddit.de to Programmer Humor@programming.dev · 1 year agomessage-square15fedilink
minus-squaremorrowind@lemmy.mllinkfedilinkarrow-up1·1 year ago for item in array do puts item[:name] end What’s with the weird syntax, isn’t idiomatic ruby array.each do |item| puts item[:name] end (or the shorthand version)?
What’s with the weird syntax, isn’t idiomatic ruby
array.each do |item| puts item[:name] end
(or the shorthand version)?