Inductor@feddit.de to Programmer Humor@programming.dev · 1 year agoProgramming Languages as Essaysfeddit.deimagemessage-square29fedilinkarrow-up116arrow-down10
arrow-up116arrow-down1imageProgramming Languages as Essaysfeddit.deInductor@feddit.de to Programmer Humor@programming.dev · 1 year agomessage-square29fedilink
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)?