Ruby blocks are anonymous functions that can be passed into methods. Blocks are enclosed in a do-end statement or curly braces ().
Read in 7 minutesRuby on RailsRuby blocks are anonymous functions that can be passed into methods. Blocks are enclosed in a do-end statement or curly braces ().
Read in 7 minutesRuby on Rails