Inductor@feddit.de to Programmer Humor@programming.dev · 10 months agoProgramming Languages as Essaysfeddit.deimagemessage-square21fedilinkarrow-up113arrow-down10
arrow-up113arrow-down1imageProgramming Languages as Essaysfeddit.deInductor@feddit.de to Programmer Humor@programming.dev · 10 months agomessage-square21fedilink
minus-squaremorrowind@lemmy.mllinkfedilinkarrow-up1·10 months 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)?